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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run a macro without opening the database

Status
Not open for further replies.

MDGarcia

Programmer
Oct 7, 2004
64
PR
Good day,

I created an mdb whose data will be updated every 10 days. I created a macro to read from a text flat file I receive and to upload the new data into the table.

I want to somehow automate this process to run the macro when its time without opening the database.

I read that I can create a desktop shortcut or use the Scheduler to run either of these commands:

...\path to ms access\msaccess.exe /mymdb.mdb mymacro
Or
...\path to ms access\msaccess.exe\mymdb.mdb /mymacro

I can also try VB coding, but I’m not sure how.

Anyone got ideas on how to achieve this?

Thank you.
 
The syntax is:
"\path\to\msaccess.exe" "\path\to\database.mdb" /x macroname

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top