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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|