AutoExec vs another

  • Thread starter Thread starter Bill
  • Start date Start date
B

Bill

I have a large application wherein I'd like to
run one of its functions as a batch job. The
application currently runs the AutoExec
macro wherein it determines a best fit screen
resolution before launching the opening form.
I had in mind that I could include a /x macname
on the invoking command line whenever I
wanted to run one of the application's functions
as a single task, but that doesn't seem to work,
leaving me to believe that if an AutoExec macro
exists that it will be executed no matter what
is on the command line.

The /x macname only has a Runcode command
that invokes a public function that "taps" into one
of the applications functionality.

I was using a modified desktop shortcut like:
"c:\myfolder\myapplication.mdb" "/x macname"

Do I have the correct understanding here?

Bill
 
If you have an AutoExec macro it will run when the db opens!

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000/2003

Message posted via AccessMonster.com
 
I don't think I asked the right question. I already
have an Autoexec macro, which I want to run as
the default. However, if I add a switch /x macroname
to the shortcut, then I want that macro to run and
NOT the Autoexec.
 
Not going to happen. If you have an AutoExec macro, it will always run first
unless you open the database with the Shift key down.
--
Bob Larson
Access World Forums Super Moderator
Utter Access VIP
Tutorials at http://www.btabdevelopment.com
If my post was helpful to you, please rate the post.
__________________________________
 
It wouldn't be so bad if I could just pass a parameter
to the AutoExec macro from the invoking command
line in a desktop shortcut, or any macro (/x mac) for
that matter.
Bill
 
How about this as an option -

Do whatever you want and put it in a text file and have a function that runs
within the AutoExec macro (using Action - RunCode) and import the file and
use it to provide the instructions.
--
Bob Larson
Access World Forums Super Moderator
Utter Access VIP
Tutorials at http://www.btabdevelopment.com
If my post was helpful to you, please rate the post.
__________________________________
 
Back
Top