BAT file does not work if Access is already open (1 Viewer)

illusionek

Registered User.
Local time
Yesterday, 23:31
Joined
Dec 31, 2013
Messages
92
Hello!

I use below simple command line to start a macro in my Access database. Usually all works well. I start my bat file, command is executed and macro does its job.

However it always fails if I have a session of Access already opened even if it is a completely different database. If I use below then it opens another sessions of Access but does not execute the macro. I need to go into the second session and run macro manually. It works fine then.

Any ideas why and how to fix it?

Many thanks.
Code:
"C:\Users\Me\Documents\Databas1.accdb" /X Macro
 

boerbende

Ben
Local time
Today, 08:31
Joined
Feb 10, 2013
Messages
339
Starting your application with a specific form (maybe you do this already) which runs the macro in the onload event.
 

Users who are viewing this thread

Top Bottom