Apr 16, 2013 #1 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
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
Apr 16, 2013 1 #2 Andrzejek Programmer Jan 10, 2006 8,509 US [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 Upvote 0 Downvote
[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