PC Review


Reply
Thread Tools Rate Thread

Autoexecute ACCESS97 macro

 
 
New Member
Join Date: Jul 2005
Posts: 1
 
      22nd Jul 2005
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
 
Reply With Quote
 
 
 
 
Member
Zhoul's Avatar
Join Date: Jul 2005
Location: h3wh0g00gle4u
Posts: 47
 
      29th Jul 2005
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
 
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Autoexecute macro Joanne M. Microsoft Excel Misc 3 15th Jun 2007 04:09 PM
Start Word with autoexecute macro fails in Word 2003 =?Utf-8?B?Si5BLlIuIEthcnJlbWFucw==?= Microsoft Word Document Management 3 21st Aug 2006 02:03 PM
how do i run an autoexecute macro in excel =?Utf-8?B?cm9iaW4gbW9ycmlz?= Microsoft Excel Worksheet Functions 2 6th Jul 2006 05:36 PM
autoexecute a macro on the start of a show =?Utf-8?B?QmlsbA==?= Microsoft Powerpoint 4 11th Nov 2005 04:59 PM
Re: Opening an AutoExecute Macro Workbook from an AutoExecute Macro Workbook Tom Ogilvy Microsoft Excel Programming 0 8th Jul 2003 04:21 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:54 PM.