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 / October 2007

Tip: Looking for answers? Try searching our database.

alerts in macro's

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Desiree - 17 Oct 2007 19:50 GMT
when using an append query in a macro, how can you hide the alerts or dialog
boxes or make them automatically click yes
KARL DEWEY - 17 Oct 2007 20:12 GMT
For first action use Warnings - Off.   Then for last use Warnings - On.
Signature

KARL DEWEY
Build a little - Test a little

> when using an append query in a macro, how can you hide the alerts or dialog
> boxes or make them automatically click yes
Desiree - 17 Oct 2007 20:24 GMT
Can you please put that in "stupid user" terms?  I have been using macro's
sporatically and am currently drawing a blank on how to translate your
response.  Thanks in advance for your patience.

> For first action use Warnings - Off.   Then for last use Warnings - On.
>
> > when using an append query in a macro, how can you hide the alerts or dialog
> > boxes or make them automatically click yes
KARL DEWEY - 17 Oct 2007 21:53 GMT
See Steve Schapel's response.
Signature

KARL DEWEY
Build a little - Test a little

> Can you please put that in "stupid user" terms?  I have been using macro's
> sporatically and am currently drawing a blank on how to translate your
[quoted text clipped - 4 lines]
> > > when using an append query in a macro, how can you hide the alerts or dialog
> > > boxes or make them automatically click yes
Steve Schapel - 17 Oct 2007 20:20 GMT
Desiree,

Put a SetWarnings/No action in your macro before the first OpenQuery action.

Signature

Steve Schapel, Microsoft Access MVP

> when using an append query in a macro, how can you hide the alerts or dialog
> boxes or make them automatically click yes
chuckHRC - 31 Oct 2007 01:01 GMT
Desiree-  Whenever you "turn off" system warnings, as has been correctly
suggested, it's also a good practice to create your own error handling.  You
might want to put a DCount statement as a condition one line below the append
query in the same macro to validate the record was added to your table and
have the condition=true fire your own message box, then set warnings back on.
The last thing you want is for a user to "think" a record appended when it
really didn't (they wouldn't know BECAUSE the warnings were turned off!) ...
just a thought from someone that's written several proprietary Access
applications.

>when using an append query in a macro, how can you hide the alerts or dialog
>boxes or make them automatically click yes
 
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.