A
AnhCVL via AccessMonster.com
Hi all,
I have a form which have couple checkboxes. which is Yes & No checkboxes so I
want the the Yes box to be uncheck automatically when I check the No box and
vice versa. Each of the checkbox is bound to a yes/no field in the database
table, I've try to used the code below:
Private Sub Check50_Click()
If Check50.Checked = False Then
Check50.Checked = True
Check52.Checked = False
End If
End Sub
If Check52.Checked = False Then
Check52.Checked = True
Check50.Checked = False
End If
where as check50 is YES and check52 is NO. I was thinking of put an array
checkboxes but not sure if it's correct way. any help will be greatly
appreaciated.
Thanks.
I have a form which have couple checkboxes. which is Yes & No checkboxes so I
want the the Yes box to be uncheck automatically when I check the No box and
vice versa. Each of the checkbox is bound to a yes/no field in the database
table, I've try to used the code below:
Private Sub Check50_Click()
If Check50.Checked = False Then
Check50.Checked = True
Check52.Checked = False
End If
End Sub
If Check52.Checked = False Then
Check52.Checked = True
Check50.Checked = False
End If
where as check50 is YES and check52 is NO. I was thinking of put an array
checkboxes but not sure if it's correct way. any help will be greatly
appreaciated.
Thanks.