Short Cut Menu - Insert Object

M

Melbourne

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
 
A

Albert D. Kallal

Melbourne said:
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....
 
M

Melbourne

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top