Jump to content
Joe4

Open an Access Database

Recommended Posts

Joe4

I am creating a script that copies over the most recent version of a Front-End Access database to a user's hard-drive, and then opens it.  I have researched and seen lots of topics on connecting to an Access database, but I am not trying to do that.  I am simply trying to open it for them.

In a DOS batch file, the file to do that would look something like this:

"C:\Program Files\Microsoft Office\Office12\MSACCESS.EXE" "C:\Databases\MyDatabase.accdb"

So, what is the equivalent statement I would use in an AutoIt script to open the Access database?

Thanks

Share this post


Link to post
Share on other sites
JLogan3o13

Hi, Joe4, welcome to the forum. Look at Run in the help file, the syntax would be almost identical.

Edit -  Or, look at ShellExecute: 

ShellExecute("C:\Databases\MyDatabase.accdb")

 

Edited by JLogan3o13

√-1 2^3 ∑ π, and it was delicious!

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

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.