A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Short Cut Menu - Insert Object



 
 
Thread Tools Display Modes
  #1  
Old May 5th, 2009, 01:52 PM posted to microsoft.public.access
Melbourne
external usenet poster
 
Posts: 23
Default Short Cut Menu - Insert Object

I have been developing short cut menus for my database but have been unable
to assign the "Insert Object" function to the menus.

I would appreciate it if I could get some help with the command needed to
attach the function to the menu.

Thanks
  #2  
Old May 5th, 2009, 02:19 PM posted to microsoft.public.access
Melbourne
external usenet poster
 
Posts: 23
Default Short Cut Menu - Insert Object

Sorry I forgot to mention that I am working in Access 2007.

Melbourne

"Melbourne" wrote:

I have been developing short cut menus for my database but have been unable
to assign the "Insert Object" function to the menus.

I would appreciate it if I could get some help with the command needed to
attach the function to the menu.

Thanks

  #3  
Old May 5th, 2009, 05:19 PM posted to microsoft.public.access
Albert D. Kallal
external usenet poster
 
Posts: 2,874
Default Short Cut Menu - Insert Object

"Melbourne" wrote in message
...
I have been developing short cut menus for my database but have been unable
to assign the "Insert Object" function to the menus.

I would appreciate it if I could get some help with the command needed to
attach the function to the menu.

Thanks


Do you mean for a attachment field?

Hum, if you don't need all of the navigation buttons, you could have the
shortcut menu call some vba code that pops open the file dialog browse, and
then "adds" that file to the attachment field. There is a sample of how to
do this in the help. (while in code editor, just type in attachment).

the 2nd hit in the help - How to work with Attachments In DAO gives some
code samples.....

You also have to build your own custom navigation buttons......

In that table of help contents, you see that attachment objects also support
attachment.Forward and attachmentContorl.Back

So, you not need to write much code here, but if you disabled the built-in
menu I quite sure you need to do the above unless someone else chimes in
with some docmd that can fire off the attachment process.....

Perhaps I 100% miss-reading your question...as I am not sure of any other
inset object feature in access that you can use a run-time. (do correct me
if you not talking about an attachment contorl/field....

--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada



  #4  
Old May 6th, 2009, 12:18 AM posted to microsoft.public.access
Melbourne
external usenet poster
 
Posts: 23
Default Short Cut Menu - Insert Object

Thank you Albert, I will look into you reply. Some further information for
you.

The field that I want to insert into is an "OLE field". When you right
click with the acceess short cut menu you get the option to open an "Insert
Object Dialog Box". I would like to emulate this in my short cut menu.

Does this help you with any other suggestions.

Thanks

"Albert D. Kallal" wrote:

"Melbourne" wrote in message
...
I have been developing short cut menus for my database but have been unable
to assign the "Insert Object" function to the menus.

I would appreciate it if I could get some help with the command needed to
attach the function to the menu.

Thanks


Do you mean for a attachment field?

Hum, if you don't need all of the navigation buttons, you could have the
shortcut menu call some vba code that pops open the file dialog browse, and
then "adds" that file to the attachment field. There is a sample of how to
do this in the help. (while in code editor, just type in attachment).

the 2nd hit in the help - How to work with Attachments In DAO gives some
code samples.....

You also have to build your own custom navigation buttons......

In that table of help contents, you see that attachment objects also support
attachment.Forward and attachmentContorl.Back

So, you not need to write much code here, but if you disabled the built-in
menu I quite sure you need to do the above unless someone else chimes in
with some docmd that can fire off the attachment process.....

Perhaps I 100% miss-reading your question...as I am not sure of any other
inset object feature in access that you can use a run-time. (do correct me
if you not talking about an attachment contorl/field....

--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:44 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.