Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OPen app (eg explorer) with certain file??

Status
Not open for further replies.

elziko

Programmer
Nov 7, 2000
486
GB
I want a button that when pressed will open explorer showing a picture (jpg) who's filename is given inside a field on the form.

Any help?

Thanks

elziko
 
you can do this with a macro or with code
use the runapp command
for the command line use START command to call up whatever program or file you want to run.
 
Just use the following as the OnClick event for your button:

Dim stAppName As String
stAppName = "c:\whereverIEis\IEXPLORE.EXE " & me.formfieldwithgraphicname
Call Shell(stAppName, 1)

Of course, replace the "Whatevers" with appropriate file paths.

That should do it.
Tim Gill
Gill Consulting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top