VB Coding

R

rblivewire

What is the VB coding to put a warning on a button. E.g. Are you sure
you want to save? Yes or no
 
G

Guest

Use the MsgBox function. You can get details in VBA Help. Here is a basic
example:

If MsgBox("Do You Want to Delete The Record"), vbQuestion + vbYesNo) = vbYes
Then
'Do the delete
Else
'Dont do it
End If
 

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