View Single Post
  #2  
Old May 2nd, 2008, 10:54 PM posted to microsoft.public.access.forms,microsoft.public.access.modulescoding,microsoft.public.access.modulesdaovba
Margaret Bartley[_3_]
external usenet poster
 
Posts: 30
Default RunCommand acCmdInsertObject ', (Default Folder)


"Andy" wrote in message
...
Using A2K.
Have this code in the "On Dbl Click" Event of an "OLE Object" type
Control:

RunCommand acCmdInsertObject ' Opens "Insert Picture From File" Dialog
Box.

It would be easier for the Users if the Dialog Box opened directly to the
folder where the JPGs are stored and for them to be automatically linked.

Would someone be so kind and point me in the right direction to find this
answer?


Why do you need to open the dialogue box?
Why don't you just get the path with a FileOpen dialogue box, which can
specifiy the path, and then embed the object with code.

Arvin Meyer has an example:
http://www.dbforums.com/archive/index.php/t-561556.html