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 / General 2 / February 2008

Tip: Looking for answers? Try searching our database.

Hiding message  & dialog boxes

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ayo - 20 Feb 2008 04:45 GMT
Is there a way to prevent a warning dialog from popping up like its don't in
excel. Thanks.
Dale Fye - 20 Feb 2008 13:30 GMT
Depends on what you are doing.  If you are executing some sort of action
query, then there are a couple of ways.

1.  You can preceed and follow the code with statements turning the warning
off/on
Docmd.SetWarnings False
'some code here
Docmd.setWarnings True

2.  You could use the Execute method to run the query.  This bypasses the
warning messages and, unless you explicitly tell it to warn you if the action
fails, will not give you any indication regarding the success or failure of
the execution.  I generally add the "dbFailOnError" option and provide some
error handling code so that I can identify errors that occur and handle them
properly.

Currentdb.Execute strSQL, dbFailOnError

HTH
Dale
Signature

Don''t forget to rate the post if it was helpful!

email address is invalid
Please reply to newsgroup only.

> Is there a way to prevent a warning dialog from popping up like its don't in
> excel. Thanks.
Tom van Stiphout - 20 Feb 2008 14:06 GMT
Perhaps you are referring to:
DoCmd.SetWarnings False
...do your thing
DoCmd.SetWarnings True

-Tom.

>Is there a way to prevent a warning dialog from popping up like its don't in
>excel. Thanks.
 
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.