Confirmation Message for Button of Form

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
 
A

ALESSANDRO Baraldi

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top