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 » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

RunCommand acCmdInsertObject ', (Default Folder)



 
 
Thread Tools Display Modes
  #1  
Old April 30th, 2008, 08:10 PM posted to microsoft.public.access.forms,microsoft.public.access.modulescoding,microsoft.public.access.modulesdaovba
Andy[_11_]
external usenet poster
 
Posts: 48
Default RunCommand acCmdInsertObject ', (Default Folder)

Hi;

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?

Thank You for taking the time to read this post.

Andy


  #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


  #3  
Old May 11th, 2008, 04:25 AM posted to microsoft.public.access.forms,microsoft.public.access.modulescoding,microsoft.public.access.modulesdaovba
Andy[_11_]
external usenet poster
 
Posts: 48
Default RunCommand acCmdInsertObject ', (Default Folder)

Margaret;

Thank You.

Andy

PS. I apologize for the belated Thank You. Have been overcoming other
computer obstacles and just got to Your Reply today 05/10/08 11:25pm local
time.

"Margaret Bartley" wrote in message
...

"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



 




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 03:39 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.