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.
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