Open a MDI file

  • Thread starter Thread starter Guest
  • Start date Start date
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.
 
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
 
Back
Top