Verify selection

H

Howard

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!
 
R

RobFMS

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

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 

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