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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Turning off erase table messages in vb 1

Status
Not open for further replies.

Xzibit7

Technical User
Jun 20, 2006
172
US
I have a make table query that keeps giving me the mesaage that my table will be deleted evertime I use it. The problem is I have already gone in and turned off action messages in the options tab under tools. Is there a way to do this with vb?
 
In the example below, warning messages are turned off before the statement to delete a table, then back on after it is deleted. Hope this helps!

Code:
    DoCmd.SetWarnings False
    strSQL = "DELETE * FROM " & tdfName & ";"
    DoCmd.RunSQL strSQL
    DoCmd.SetWarnings True
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top