Delete Macro no warning

bsells

New member
Local time
Today, 14:46
Joined
Aug 24, 2015
Messages
5
I have a delete macro that deletes the record in the navigation pane. Unfortunately it does it with no warning. I even went in and and setwarning = true and it still doesn't. I need the warning, please help.
B
 
if the macro is running a query, the the setwarning will work.
if its NOT a query, what is it running?
 
it is doing a RunCommand DeleteRecord
 
use
setwarnings true
openquery "qdDelrec"

(build a query)
 
this is what it looks like now
 

Attachments

  • macro.jpg
    macro.jpg
    89.7 KB · Views: 178
I hate to turn to a query when the macro performs perfectly and all i need is a warning. Any help is greatly appreciated.
 
This may not be an optimal solution, but I always use a message box asking if the user really wants to delete the record. VbYesNo, if no, exit.
 
Not sure how it is done on MS2003, but on 2010 this works in the macro builder:


IF MsgBox("Are you Sure?",4)=7 then
StopMacro
Else
Your delete code
 

Users who are viewing this thread

Back
Top Bottom