i am trying to figure out how to execute an Access macro at the same time every morning. i thought Outlook might be the obvious choice. Can anyone tell me how this might work with Outlook or any other desktop utility?
Thanks
——————
mike
![]() |
Patch reliability is unclear, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » ACCESS97
Hi Mike,
Here’s a thought: You could use the Scheduled Tasks feature built into Windows 9x (and NT, I presume). Just set an automated task to launch Access at the specified time each desired (weekday) morning. Then include the path to the access database in the command line:
C:Program FilesMicrosoft OfficeOfficeMSAccess.exe C:My DocumentsMyDatabase.MDB
Then just make sure you have the macro set to launch when the database is opened (Autoexec macro).This would not require Outlook to be open and shouldn’t require any user intervention.
Good luck!
-MarkJ-
I’ve never tried this command line switch, but according to the online help (ask for help on command-line options) /x macroname will start a specified macro when Access starts up. So, you could use that to run your macro only when the scheduled task launches and not every time you run the database (as would be the case for the Autoexec macro).
I do exactly what Doug Martin is suggesting to run daily maintenance on a large database. I just built a simple batch file ([filename].bat)that can be run by simply double clicking from explorer, or scheduled in any application that uses a “run application” function. I used the Norton Program Scheduler that comes with Norton Antivirus for quite a while, with the path to the *.bat file and the “x/ (macroname) argument at the end. You could do it directly by supplying the path to the database too.
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.
Notifications