Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Macros / April 2007

Tip: Looking for answers? Try searching our database.

Auto Confirmation after running update query

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mslee65 - 21 Apr 2007 15:56 GMT
I am running the following query through a macro at the end of every day
through the windows scheduler:

UPDATE ItemMaster INNER JOIN AMFLIB_ITEMASA ON
ItemMaster.ITNOIM=AMFLIB_ITEMASA.ITNBR SET ItemMaster.UCDEF =
AMFLIB_ITEMASA.UCDEF;

However, when it finishes, it asks for a confirmation to update xxxx
records.  I tried to enter a SendKeys action with the keystroke Y or {ENTER},
but it does not answer the dialog box.  How do I answer this dialog box,
which expects you to click on the YES command button?
Ed Metcalfe - 21 Apr 2007 22:28 GMT
>I am running the following query through a macro at the end of every day
> through the windows scheduler:
[quoted text clipped - 8 lines]
> but it does not answer the dialog box.  How do I answer this dialog box,
> which expects you to click on the YES command button?

Have a look at the SetWarnings action in your macro. You need to turn them
off before running the query, and the turn them back on again.

Be aware that this will also supress any messages about records that have
not been updated (for index/validation violations, for example).

Ed Metcalfe.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.