How to run a macro specified in the /x command line switch instead of the autoexec macro ?
-
Friday, August 24, 2012 4:01 PM
Hi all
I have a accdb (access 2007) with a autoexec macro to make the setup as I need.
In some conditions, I want to open it from a command line specifying another macro...
One other solution, would be in those conditions, pass an argument to the autoexec macro through command line...
... and macros are not my "forte"...
Any idea will be welcome.
TIA
João
- Edited by João Simplicio Rodrigues Friday, August 24, 2012 4:03 PM grammar error
All Replies
-
Friday, August 24, 2012 4:25 PM
Got it...
the solution is use the /cmd switch and modify the code call by the autoexec macro...
Is so simple it hurts...
Sometimes thinking is better a bit more and avoid a post...
or "if you can not help, disturb, the important thing is to participate..."
- Marked As Answer by João Simplicio Rodrigues Friday, August 24, 2012 4:25 PM
-
Monday, August 27, 2012 7:54 AMModerator
Thanks for your sharing and have a nice day.
Also, add the following link for who are interested:
Command-line switches for Access
http://office.microsoft.com/en-us/access-help/command-line-switches-for-access-HA010166605.aspxYoyo Jiang[MSFT]
MSDN Community Support | Feedback to us

