Jump to content

Open an Access Database

Recommended Posts

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?


Share this post

Link to post
Share on other sites

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

Edit -  Or, look at ShellExecute: 



Edited by JLogan3o13

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

  • Create New...