Solved

Automatically running a macro daily, without user intervention

Posted on 2003-12-01
4
1,005 Views
Last Modified: 2008-03-06
I have a secured Access XP front-end to a FoxPro database on an internal switched ethernet network.  I need to run a macro daily at 11:50 PM.  The macro's built and tested. Does anyone know how to kick it off, without user intervention?  Both the Access and the FoxPro databases are secured. Will the security settings need to be considered when automatically running the macro?

0
Comment
Question by:DKJensen
4 Comments
 
LVL 3

Expert Comment

by:syntnx
ID: 9850666
DK,

I personally would set-up a separate Access frontend with the security set-up and macro created, Then just use the windows schedule service to open the DB at the specific time. Even if database has credentials saved, just dont share that copy out. You can run the task for a scheduled time frame and then it will close.

Hope this helps

syntnx
0
 
LVL 28

Accepted Solution

by:
TextReport earned 250 total points
ID: 9850725
On your server you can schedule a process to run at 23:50 the process can run MSACCESS.EDXE and tell the system to execute your macro, you will however need to pass the USERNAME and PASSWORD from the command line.

"C:Program Files\Microsoft Office\Office\MSACCESS.EXE" "c:\MyDatabase.MDB" /WRKGRP "C:\My.MDW" /USER username /PWD mypassword /x mymacro

Cheers, Andrew
0
 

Author Comment

by:DKJensen
ID: 9850970
Thanks, Andrew - I'll give it a go.
0
 
LVL 1

Expert Comment

by:sph3rion
ID: 9851301
To have a macro auto-run when you open the DB, or it gets executed by a scheduler... name the macro 'autoexec'.

Just thought I'd toss that in there as well
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question