Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

/x macro function 1

Status
Not open for further replies.

tma12000

IS-IT--Management
Nov 24, 2003
19
US
I am looking to run a macro from a command line. But whenever it runs, it opens the db and simply highlights the macro I want to run, without actually running it. WHat am I doing wrong?

D:\path\dbname.mdb /x macroname

Thanks,
Tim
 
I should add... I do have things running in AutoExec... would that interfere with it?
 
Why not run the second macro from inside the AutoExec macro?
 
The macro sends information over a network to another db. I have users who log into the db remotely that do not have access to the destination directory, so if it is in Autoexec, the macro fails.

Thanks,
Tim
 
What is the command line you are using and what are the actions in the macro.

Paul
 
Tim,

Try adding the path of the Access .exe to your command line. Something like:
Code:
"C:\Program Files\Microsoft Office\Office\MSAccess.exe" D:\path\dbname.mdb /x macroname

I use this syntax in a DOS batch file, but it should work in a shortcut too....

Hoc nomen meum verum non est.
 
The command line is
D:\path\dbname.mdb /x macroname

The macro is pulling data from a db that exists over a network.
 
It appears it did... thank you guys so much for your help!

Tim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top