Open a MDI file

G

Guest

Hi!

I want to open a MDI file by a click on a form, is this possible?

Kind regards, Stefan van der Hooft.
 
S

Scott McDaniel

I want to open a MDI file by a click on a form, is this possible?

If you have the file's extension associated with an application on the machine, then you can use the Shell function:

Sub YourButton_Click()
Shell "Full path to your MDI file", vbNormalFocus
End Sub

Dev Avish's site has a better process, in my opinion, that allows you a bit more control over the process. The outcome
is the same, but you can trap erros and such a bit easier with it:

http://www.mvps.org/access/api/api0018.htm

Scott McDaniel
scott@takemeout_infotrakker.com
www.infotrakker.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top