What is the VB coding to put a warning on a button. E.g. Are you sure you want to save? Yes or no
R rblivewire May 25, 2006 #1 What is the VB coding to put a warning on a button. E.g. Are you sure you want to save? Yes or no
K Klatuu May 25, 2006 #2 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
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