Way To Surpress warnings?

M

mcl

Is there a way when running a macro (or just a query) where you can stop all
the stupid warnings.
I link via ODBC to our oracle database at work.
I use queries to pull a small subset of data down to my local machine using
a make table query.
All those stupid warning are just a pain and totally unnecessary. Warnings
about going to make a table, delete a table...blah...blah..blah.
Yes I wouldn't be using a make table query of it didn't want it to do that.
Plus I force some elements to double precision rather than let access guess
and there some cases of missing data.
Of course access once again gives a totally unnecessary dialog box and then
does exactly what it needs to do, leave them as nulls.
So is there a way to surpress all that garbage?
 
J

John Vinson

So is there a way to surpress all that garbage?

Yes.

Setwarnings False

before running the queries; be sure to

Setwarnings True

afterward or you'll turn off all warning messages, even ones you want
to see.

John W. Vinson[MVP]
 
D

Duane Hookom

You can execute code before running the action queries:
DoCmd.SetWarnings False
then after running the queries
DoCmd.SetWarnings True
 

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