wshepard
asked on
Open Access Database Using VBS
How do you open an Access database using vbs and specify a workgroup mdw file, username and password?
What are you trying to do? if you just want to connect to it, you can open an ADO or DAO connection.
ASKER
LSM,
I want to fully open the database from a vbs script. The db is secured so I want to pass the users username and password to Access from the script.
I want to fully open the database from a vbs script. The db is secured so I want to pass the users username and password to Access from the script.
ASKER
The current desktop shortcut to the database uses the following for the target path:
"C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.E XE" /wrkgrp \\cotserver\vol1\departmen ts\fire\da tabases\ci tyfire.mdw "\\cotserver\vol1\departme nts\fire\d atabases\c ityfire personnel.mdb"
The Start in box contains the following:
\\cotserver\vol1\departmen ts\fire\da tabases
"C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.E
The Start in box contains the following:
\\cotserver\vol1\departmen
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you
Specify a Workgroup:
"C:\Program Files\Microsoft Office\Office10\msaccess.e