A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

remove action query message



 
 
Thread Tools Display Modes
  #1  
Old March 17th, 2010, 12:20 AM posted to microsoft.public.access
Waxman
external usenet poster
 
Posts: 1
Default remove action query message

When I run an append query or make table query the system tells me that I
will add records and so on... is there any way to suppress these messages?
There are a few posts on line but they don't seem to apply to Access 2007.
Can anyone help?
  #2  
Old March 17th, 2010, 12:36 AM posted to microsoft.public.access
Tom van Stiphout[_2_]
external usenet poster
 
Posts: 1,653
Default remove action query message

On Tue, 16 Mar 2010 17:20:01 -0700, Waxman
wrote:

Programmatically: DoCmd.SetWarnings False.
Interactively: Office Button Access Options Advanced Confirm
Action Queries

-Tom.
Microsoft Access MVP


When I run an append query or make table query the system tells me that I
will add records and so on... is there any way to suppress these messages?
There are a few posts on line but they don't seem to apply to Access 2007.
Can anyone help?

  #3  
Old March 25th, 2010, 02:30 AM posted to microsoft.public.access
Tony Toews [MVP]
external usenet poster
 
Posts: 3,776
Default remove action query message

Tom van Stiphout wrote:


Interactively: Office Button Access Options Advanced Confirm
Action Queries


I'd never use that option as it won't make a difference for other
users and if you run a query on it's own then this will remove that
check.

Tony
--
Tony Toews, Microsoft Access MVP
Tony's Main MS Access pages - http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
For a convenient utility to keep your users FEs and other files
updated see http://www.autofeupdater.com/
Granite Fleet Manager http://www.granitefleet.com/
  #4  
Old March 25th, 2010, 02:30 AM posted to microsoft.public.access
Tony Toews [MVP]
external usenet poster
 
Posts: 3,776
Default remove action query message

Waxman wrote:

When I run an append query or make table query the system tells me that I
will add records and so on... is there any way to suppress these messages?
There are a few posts on line but they don't seem to apply to Access 2007.


Are you using macros or VBA? If macros then the SetWarnings will
work.

If VBA the problem with DoCmd.RunSQL is that it ignores any errors.
Either of the following will display any error messages received by
the query. If using DAO, use Currentdb.Execute strSQL,dbfailonerror..
For ADO use CurrentProject.Connection.Execute strCommand,
lngRecordsAffected, adCmdText You can then remove the
docmd.setwarnings lines.

If you're going to use docmd.setwarnings make very sure you put the
True statement in any error handling code as well. Otherwise weird
things may happen later on especially while you are working on the
app. For example you will no longer get the "Do you wish to save your
changes" message if you close an object. This may mean that unwanted
changes, deletions or additions will be saved to your MDB.

Also performance can be significantly different between the two
methods. One posting stated currentdb.execute took two seconds while
docmd.runsql took eight seconds. As always YMMV.

Tony
--
Tony Toews, Microsoft Access MVP
Tony's Main MS Access pages - http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
For a convenient utility to keep your users FEs and other files
updated see http://www.autofeupdater.com/
Granite Fleet Manager http://www.granitefleet.com/
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:02 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.