Confirmation Message for Button of Form

  • Thread starter Thread starter TD
  • Start date Start date
T

TD

I have a form that has buttons on it that run delete queries or append
queries/macros. Is it possible to have a message pop up that ask the user
"are You Sure?" and then let the user choose Yes, No, or Cancel"

TIA
TD
 
TD said:
I have a form that has buttons on it that run delete queries or append
queries/macros. Is it possible to have a message pop up that ask the user
"are You Sure?" and then let the user choose Yes, No, or Cancel"

TIA
TD


You can use MsgBox Function properties...!

Dim strMsg as string
strMsg=Msgbox("Are you sure..?",VbQuestion+VbYesNo,"Warning...")
If strMsg=vbyes then
'Delete or Append
Else
Msgbox "OK i don't EXECUTE any Funtion"
End if

Alessandro(IT)
 
Back
Top