Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBYesNo 1

Status
Not open for further replies.

fileman1

Technical User
Feb 7, 2013
152
GB
I have this code to use, however I cannot find the way to get my Yes and No out of it. Seems to goto VBYes all the time? and not VBNo

Code:
     MsgBox "Do you want to associate record with selected Keyword?", _
  VbMsgBoxStyle.vbYesNo Or VbMsgBoxStyle.vbQuestion

 

[pre]
If vbYes = MsgBox("Do you want to associate record with selected Keyword?", _
VbMsgBoxStyle.vbYesNo Or VbMsgBoxStyle.vbQuestion) Then

MsgBox "YES"

Else
MsgBox "NO"
End If
[/pre]

Have fun.

---- Andy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top