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

Can MsgBox automated by system be avoided?

Status
Not open for further replies.

Doraemon

IS-IT--Management
Sep 12, 2003
31
HK
I have created a "Delete" button, in which when clicked, will delete all the records in a specified table.

However, a message box which is popped up by the system will result for the confirmation of deletion.

I would like to ask is there any method for avoid the message box, so that the deletion will be carried out directly without confirmation from users?
 
Or in the code for the button itself, put:

DoCmd.SetWarnings False

before the deletion code and

DoCmd.SetWarnings True

after the code...

****************************
Only two things are infinite, the universe and human stupidity,
and I'm not sure about the former. (Albert Einstein)

Robert L. Johnson III
MCSA, CNA, Net+, A+
w: rljohnso@stewart.com
h: wildmage@tampabay.rr.com
 
I can now avoid those msgbox through your help.
Really thanks!
 
Doraemon,

It is good practice in these forums to be a bit more specific as to who helped you and what exactly worked for you....

This allows for others to read the threads and find their solutions easier and quicker...

Just an FYI...We are always here to help...

****************************
Only two things are infinite, the universe and human stupidity,
and I'm not sure about the former. (Albert Einstein)

Robert L. Johnson III
MCSA, CNA, Net+, A+
w: rljohnso@stewart.com
h: wildmage@tampabay.rr.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top