Solved

Access Run in "Batch"

Posted on 2014-03-20
1
412 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

In Debugging – Part 1, you learned the basics of the debugging process. You learned how to avoid bugs, as well as how to utilize the Immediate window in the debugging process. This article takes things to the next level by showing you how you can us…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

911 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

20 Experts available now in Live!

Get 1:1 Help Now