A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Schedule a Macro with Windows Task Manager



 
 
Thread Tools Display Modes
  #1  
Old March 3rd, 2010, 08:44 PM posted to microsoft.public.access.queries
lindag
external usenet poster
 
Posts: 6
Default Schedule a Macro with Windows Task Manager

I am trying to do so, but it is not working.

My .bat file:
C:\Program Files\Microsoft Office\OFFICE11
E:\IT Dept\Access\database name.mdb /x Marco Name

Is this correct?
  #2  
Old March 3rd, 2010, 09:04 PM posted to microsoft.public.access.queries
Stefan Hoffmann
external usenet poster
 
Posts: 991
Default Schedule a Macro with Windows Task Manager

hi,

On 03.03.2010 20:44, lindag wrote:
I am trying to do so, but it is not working.

My .bat file:
C:\Program Files\Microsoft Office\OFFICE11
E:\IT Dept\Access\database name.mdb /x Marco Name

Is this correct?

No, see

http://support.microsoft.com/kb/209207

You need to specifiy the Access executable, e.g.:

Set ACCESS = "C:\Program Files\Microsoft Office\Office10\msaccess.exe"
Set DATABASE = "E:\IT Dept\Access\database name.mdb"
Start %ACCESS% %DATABASE% /x MarcoName

btw, you also need the quotation marks as the path to the executable and
the database file contains spaces:

http://www.microsoft.com/resources/d....mspx?mfr=true


mfG
-- stefan --
  #3  
Old March 3rd, 2010, 09:17 PM posted to microsoft.public.access.queries
vanderghast
external usenet poster
 
Posts: 593
Default Schedule a Macro with Windows Task Manager

You know the answer, and if it was yes, you would not ask :-)

The command line is about launching MSACCESS.EXE;
The syntax is also wrong in cases of spaces in the path name, since space
is a delimiter between arguments, and if memory serves, you need to use " ",
or, maybe, easier, to have the path and msaccess.exe and of the
databaseName.mdb file in the PATH variable;
The space in the macro name maybe a problem... as may any typo (Marco... the
Italian explorer? :-) )


Vanderghast, Access MVP


"lindag" wrote in message
...
I am trying to do so, but it is not working.

My .bat file:
C:\Program Files\Microsoft Office\OFFICE11
E:\IT Dept\Access\database name.mdb /x Marco Name

Is this correct?


 




Thread Tools
Display Modes

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 Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:44 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.