A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Delete without Confirm



 
 
Thread Tools Display Modes
  #1  
Old July 14th, 2004, 02:17 PM
Kris L.
external usenet poster
 
Posts: n/a
Default Delete without Confirm

I have a Form that users can exit without saving the work they have done.
There is already a msgbox I have made asking them to confirm they want to do this, but since I must delete the record they were working on, the Access Confirm Delete box comes up also. Is there any way to stop the Access Confirm Delete box from coming up?

Thx in advance!
Kris
  #2  
Old July 14th, 2004, 02:26 PM
Roger Carlson
external usenet poster
 
Posts: n/a
Default Delete without Confirm

Bracket (that is, place on either side) the Delete command with SetWarnings
commands:

DoCmd.SetWarning False
'your delete command
DoCmd.SetWarnings True

--
--Roger Carlson
www.rogersaccesslibrary.com
Reply to: Roger dot Carlson at Spectrum-Health dot Org


"Kris L." wrote in message
...
I have a Form that users can exit without saving the work they have done.
There is already a msgbox I have made asking them to confirm they want to

do this, but since I must delete the record they were working on, the Access
Confirm Delete box comes up also. Is there any way to stop the Access
Confirm Delete box from coming up?

Thx in advance!
Kris



  #3  
Old July 14th, 2004, 04:15 PM
Kris L.
external usenet poster
 
Posts: n/a
Default Delete without Confirm

Thx a lot! Worked like a charm .

"Roger Carlson" wrote:

Bracket (that is, place on either side) the Delete command with SetWarnings
commands:

DoCmd.SetWarning False
'your delete command
DoCmd.SetWarnings True

--
--Roger Carlson
www.rogersaccesslibrary.com
Reply to: Roger dot Carlson at Spectrum-Health dot Org


"Kris L." wrote in message
...
I have a Form that users can exit without saving the work they have done.
There is already a msgbox I have made asking them to confirm they want to

do this, but since I must delete the record they were working on, the Access
Confirm Delete box comes up also. Is there any way to stop the Access
Confirm Delete box from coming up?

Thx in advance!
Kris




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DELETE: What's wrong with this? Dave Running & Setting Up Queries 6 June 14th, 2004 03:01 AM
Delete order chase General Discussion 1 June 7th, 2004 04:11 PM
Delete - confirmation required Elfie General Discussion 2 May 21st, 2004 05:51 PM
Excel formula that will delete a row Bill Worksheet Functions 5 April 29th, 2004 10:21 PM


All times are GMT +1. The time now is 04:36 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.