Verify selection

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi!
I want to ask the user to conform his/her selection when clicking on a
command button in my form with a prompt "Are you sure?" and perhaps a couple
of command buttons "yes" or "No". What's the simplest way to do this? Please
help!
 
If vbYes = MsgBox(Prompt:="Are you sure?", Buttons:=vbYesNo + vbQuestion,
Title:="Are you sure?") Then
' code here if user clicks YES
Else
' code here if user clicks NO
End If

HTH

--
Rob

FMS Professional Solutions Group
http://www.fmsinc.com/consulting

Software Tools for .NET, SQL Server, Visual Basic & Access
http://www.fmsinc.com

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 
Back
Top