|
-
Feb 8th, 2002, 12:30 PM
#1
Thread Starter
Junior Member
Can someone help me out?
I need to know what's wrong with this code:
if I'm getting a correct answer when I select Wisconsin and Madison then why am I getting incorrect when I select other correct options?
Private Sub cmdCheck_Click()
If optCal.Value And optSac.Value = True Then
lblMsg.Caption = "Correct"
Else
lblMsg.Caption = "Incorrect"
End If
If optCol.Value And optDen.Value = True Then
lblMsg.Caption = "Correct"
Else
lblMsg.Caption = "Incorrect"
End If
If optIll.Value And optSpr.Value = True Then
lblMsg.Caption = "Correct"
Else
lblMsg.Caption = "Incorrect"
End If
If optOre.Value And optSal.Value = True Then
lblMsg.Caption = "Correct"
Else
lblMsg.Caption = "Incorrect"
End If
If optWis.Value And optMad.Value = True Then
lblMsg.Caption = "Correct"
Else
lblMsg.Caption = "Incorrect"
End If
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|