AutoExec vs another

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
 
L

Linq Adams via AccessMonster.com

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

Bill

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

boblarson

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

Bill

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
 
B

boblarson

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top