Sign in to follow this  
Followers 0
kenz

How to run an MDE?

7 posts in this topic

I'm trying to run an .MDE file from a script. I tried just using the Run command but that doesn't work. I'd rather not Run Access with an argument since Access could possibly be installed in diffferent places. Any ideas? Thanks

Share this post


Link to post
Share on other sites



I'm trying to run an .MDE file from a script. I tried just using the Run command but that doesn't work. I'd rather not Run Access with an argument since Access could possibly be installed in diffferent places. Any ideas? Thanks

<{POST_SNAPBACK}>

try using Run(@comspec & " /c start file.mde", "", @SW_HIDE)

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Try this:

Run (@ComSpec & " /c file.mde")

Heh, too late :)

Edited by kenedy

Share this post


Link to post
Share on other sites

I tried that but the problem I'm having is that the MDE file is on a network drive. When it tries to execute I get and error about the cmd.exe trying to run from a UNC path which is not supported.

Share this post


Link to post
Share on other sites

I'd rather not Run Access with an argument since Access could possibly be installed in diffferent places.

You don't have to know where Access is to launch it. (try Start>Run>msaccess)

Therefore:

Run (@ComCpec & " /c start msaccess argument")

Share this post


Link to post
Share on other sites

You don't have to know where Access is to launch it. (try Start>Run>msaccess)

Therefore:

Run (@ComCpec & " /c start msaccess argument")

<{POST_SNAPBACK}>

Thanks guys. Kenedy's suggestion worked.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0