How to Silence messages on Make Table query?

J

Jeff

How do you silence the following messages when running a make table query?

"you are about to run a make-table query that will modify data in your
table....."

"The existing table will be deleted before your run the query....."

"You are about to post xxxx row(s) of data into a new table..."

I don't want to spoof the user..

thanks
 
N

NTC

investigate: SetWarnings

if a macro you are using just add that line at beginning and set to No
 
F

fredg

How do you silence the following messages when running a make table query?

"you are about to run a make-table query that will modify data in your
table....."

"The existing table will be deleted before your run the query....."

"You are about to post xxxx row(s) of data into a new table..."

I don't want to spoof the user..

thanks

Using Code?

DoCmd.SetWarnings False
Docmd.OpenQuery "YourQueryName"
Docmd.SetWarnings True

Or rather than using the OpenQuery method, use the Execute method,
which does not require setting Warnings to False, then True:

CurrentDb.Execute "YourQueryName", dbFailOnError
 
J

John W. Vinson

How do you silence the following messages when running a make table query?

"you are about to run a make-table query that will modify data in your
table....."

"The existing table will be deleted before your run the query....."

"You are about to post xxxx row(s) of data into a new table..."

I don't want to spoof the user..

thanks

Just one suggestion: MakeTable queries are *very rarely* actually necessary;
they're inefficient; they bloat your database; they give no control over field
sizes or datatypes...

What is the purpose of this maketable? What will you do with the new table
which cannot be done with a Select query?

In other words... quoting the WWII poster... "Is This Trip Necessary?"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top