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

How do I shut of Delete Confirm? 3

Status
Not open for further replies.

MarshaP

Programmer
May 4, 2001
31
US
I want to delete a record with VBA in Access 2000, but I don't want the user to have to confirm it. I tried using

Application.SetOption "Confirm Document Deletions", False

before the delete and then setting it back to true afterwards, but I am still getting the confirmation message. When I run it through debug, I don't get the message at all, even without the set option. Any suggestions?
 
DoCmd.SetWarnings False

and

DoCmd.SetWarnings True Mike Rohde
rohdem@marshallengines.com
 
If you want to eliminate this message on all delete querries you could
TOOLS
OPTIONS
EDIT/FIND
and Turn off the confirm edit querries.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top