I need to know how to make an event where if the user inputs the right number that shows up randomly something will happen.
Ex.
Private Sub cmdGo_Click()
lblAnswer.Caption = "And the number is..."
lblNumber.Caption = Rand(1, 25)
If txtNumber.Text = Then
MsgBox ("Mega-Winner!! $500 has been sent to your account!")
frmAccount.lblWinning1.Caption = "$500"
End If
What do I put after the = in If txtNumber.Text = ?
Wildguess:
If txtNumber.Text = lblNumber.Caption Then
Lol wow I must be tired or thinking to hard I was trying all kinds of things. Thanks!