I'm trying to write a batch file command to run an Access macro. The Access database itself is not password protected so the command opens it. However the macro involves linked tables from a database which is password protected so I need to include log-on details for it. Can anyone tell me how to do this? So far I have
I have tried adding the /pwd command but this assumes the password is for the Access database.
Code:
"C:\Program Files\Microsoft Office\Office12\MSACCESS.EXE" "L:\Reporting\Report\Data.mdb" /x QueryMacro
I have tried adding the /pwd command but this assumes the password is for the Access database.