Im trying to get a message box to display a Yes or No question and depending on the answer, will operate a function.
Its not working properly, and I dont know why. my code is as follows:
VB Code:
Private Sub Form_Load() Msgbox "Have you played this game before", vbYesNo, "Attention!" If (vbMsgboxResult.vbNo = "No") Then cmd_hack.Enabled = False cmd_start.Enabled = False End If End Sub
It's giving me an error message when I press No... I think its something with the If statement... could anyone possibly help?





Reply With Quote