Question

I have some trouble opening access file from command line.

start "FullPath\Database.mdb" - does nothing

start "C:\Program Files\Microsoft Office\OFFICE14\MSACCESS.EXE" "FullPath\Database.mdb" Opens the file normally

But different computers can have different versions of office, how can i cover all corners here?

Was it helpful?

Solution

If Access is installed, it usually ensures that the msaccess executable is available in the system path. Try it right now: hit Win-R, type msaccess, then press Enter.

So you can leave out the folder path in your command to start Access, and it should work on any computer where Access is properly installed.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top