Solved

Access Run in "Batch"

Posted on 2014-03-20
1
406 Views
Last Modified: 2014-03-20
This may be related to question Q_28392369.

We have a Windows XP scheduled task that runs nightly; it kicks off a bat file that in turn calls other bat files. One of the bat files is shown in the attached image batb.jpg.

As can be seen, batb kicks off an Access Macro; that macro is shown in Macro.jpg. I can capture any of the steps in the macro & provide them if necessary.

Until recently, the other version of this Macro had run for years every night; I had to make a new version because of other issues

Now it does not correctly run overnight.

If I run batb from the command line, it works. However, it does ask me if I want to update a table; I think it asks several variations. The first few steps in the Macro relate to updating a table; the rest extract data from the database into csv files.

I'm guessing, based on the referenced question, that I should turn off action messages in the Macro AND the queries. Is that correct?

How do I do that? Note, this is Access version 2003.

Thanks!
batb.jpg
macro.jpg
0
Comment
Question by:Richard Korts
1 Comment
 
LVL 39

Accepted Solution

by:
als315 earned 500 total points
ID: 39943199
You can remove warnings with SetWarnings No in the beginning of your macro:
http://office.microsoft.com/en-us/access-help/setwarnings-macro-action-HA001226301.aspx
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

707 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now