PC Review Forums Software Windows XP Autoexecute ACCESS97 macro

Reply
 
Thread Tools Rate Thread
Old 22-07-2005, 04:09 PM   #1
jboozer
Junior Member
 
Join Date: Jul 2005
Posts: 1
Trader Rating: (0)
Default Autoexecute ACCESS97 macro

I would like to know if there is a way to autoexecute a macro from ACCESS97 when the database is opened. I am trying to send some reports using the Task scheduler. I have gotten to the point where the database will open with the task scheduler but I can't figure the code for telling the schedule to execute the macros within ACCESS 97. Or is there a way to get the macro to autoexeute from with the database once the database in opened by the tash scheduler? Please help.....Thanks, Jerry
jboozer is offline   Reply With Quote
Old 29-07-2005, 01:47 PM   #2
Zhoul
Member
 
Zhoul's Avatar
 
Join Date: Jul 2005
Location: h3wh0g00gle4u
Posts: 47
Send a message via AIM to Zhoul
Trader Rating: (0)
Default

Wow, its been a long time since I've dealt with an Office 97 issue, but the logic should still be about the same.

If you can get the database to open up with the task scheduler, then how about...

- Set a default form. (In 2000, that setting is under "Tools" then "Startup"
- Modify that forms "Load" code to execute your macro.
- If you don't want the database to execute this every time it loads, use some VB code to specify some kind of timer that waits 10-15 seconds, and make the default form a warning about execution of the macro in X seconds, unless the form is closed.

Let me know if you need any further pointers to do this.

Nada Googled by...
__________________
- Zhoul
Quote:
Zhoul, of Google.com.uk
Zhoul is offline   Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off