Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting rid of Warnings

Status
Not open for further replies.

Joey4Js

Technical User
Sep 5, 2002
9
0
0
AU
Hi Everyone,

My six month project is nearly complete. The last thing (maybe) I need help with is getting rid of the automatic warnings that come up when I enter this code:

DoCmd.RunSQL "DELETE * FROM NewTable;"

Is there any way of getting around this?

Thanks,

Joe
 
Hi

DoCmd.SetWArnings False
DoCmd.RunSQL "DELETE * FROM NewTable;"
DoCmd.SetWarnings True

will do it Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top