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 » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

make table query



 
 
Thread Tools Display Modes
  #1  
Old September 4th, 2006, 08:33 AM posted to microsoft.public.access.forms
00KobeBrian
external usenet poster
 
Posts: 77
Default make table query

How do you suppress the action query warning message when you run make table
query and the table exists? Thanks.


  #2  
Old September 4th, 2006, 08:39 AM posted to microsoft.public.access.forms
JustinP
external usenet poster
 
Posts: 74
Default make table query

Does putting:
DoCmd.SetWarnings False
before the make table query work?


00KobeBrian wrote:

How do you suppress the action query warning message when you run make table
query and the table exists? Thanks.


  #3  
Old September 4th, 2006, 05:01 PM posted to microsoft.public.access.forms
John Vinson
external usenet poster
 
Posts: 4,033
Default make table query

On Mon, 4 Sep 2006 15:33:06 +0800, "00KobeBrian" wrote:

How do you suppress the action query warning message when you run make table
query and the table exists? Thanks.


Note that MakeTable queries are VERY rarely actually needed. Some
folks assume (perhaps based on experience with other programs) that
you need to create a new table in order to report or export the data;
neither is true, you can do so from a Query.

That said - what do you want to happen? Do you want to always
overwrite the existing table? If so, consider deleting the table as
part of the macro or VBA procedure which runs the queries. You can use
the SetWarnings action to turn off warning messages:

DoCmd.SetWarnings False

in VBA. Be sure to SetWarnings True afterward or you'll turn off ALL
warning messages!

John W. Vinson[MVP]
 




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 10:57 PM.


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