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  dBforums > PC based Database Applications > Microsoft Access > Delete confirmation msgbox

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old
Registered User
 
Join Date: Oct 2005
Posts: 87
Delete confirmation msgbox

Hi there,

when i press delete button, i get built-in access confirmation msgbox "you are about to delete xx records" or smth like that. But on other computer i don't see it (if i use the same db)..... there should be somewhere in access where i could turn this on or off?

Where could i turnt it off

Thanks
Reply With Quote
  #2 (permalink)  
Old
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 12,059
you have probably either
run a macro and done something like "set warnings off"
OR
in your settings disabled warnings
HTH
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
  #3 (permalink)  
Old
Registered User
 
Join Date: Oct 2005
Posts: 87
Quote:
Originally Posted by healdem
you have probably either
run a macro and done something like "set warnings off"
OR
in your settings disabled warnings
HTH

Thanks, it was in options
Reply With Quote
  #4 (permalink)  
Old
Purveyor of Discontent
 
Join Date: Mar 2003
Location: The Bottom of The Barrel
Posts: 6,102
For the love of god do not turn that off in options.

I use set warnings false and set warnings true. The second part is kind of important...
__________________
oh yeah... documentation... I have heard of that.

*** What Do You Want In The MS Access Forum? ***
Reply With Quote
  #5 (permalink)  
Old
Registered User
 
Join Date: Nov 2005
Posts: 26


Well i have my own msg box for confirm deletion, so double msgboxes was annoying
Reply With Quote
  #6 (permalink)  
Old
Purveyor of Discontent
 
Join Date: Mar 2003
Location: The Bottom of The Barrel
Posts: 6,102
Right... "setwarnings false" does a whole lot more than disable sql confirmation messages...
__________________
oh yeah... documentation... I have heard of that.

*** What Do You Want In The MS Access Forum? ***
Reply With Quote
  #7 (permalink)  
Old
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 12,059
If you are that concerned, or insist on putting in your own message box, then consider turning warnings off in code immediately before the step that generates the message box, and off immediately after.

Failing to do that can cause serious problems with your applciations - precisley the sort of problems that are virtually impossible to debug by remote.
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
  #8 (permalink)  
Old
Registered User
 
Join Date: Feb 2004
Location: Chicago, IL
Posts: 1,312
Me personally, I use:

SetOption "Confirm Action Queries", False

before I run an action query (delete, append, update)

and then

SetOption "Confirm Action Queries", True

I believe it is more specific than turning off all the warnings. The confirmation message will not appear using this command.
Reply With Quote
  #9 (permalink)  
Old
Purveyor of Discontent
 
Join Date: Mar 2003
Location: The Bottom of The Barrel
Posts: 6,102
oooooooooooo.... aahhhhhhhhh....

good trick, that one gets filed in "Teddy's Bag O' Good Stuff".

Of course now I have to go rifling through docs to find out what else I can destroy using SetOption...
__________________
oh yeah... documentation... I have heard of that.

*** What Do You Want In The MS Access Forum? ***
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On