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....