Question : Check box probles

Hi Experts,
I have two check boxes in a continue form.  Chk1 and chk2, I'm able to do is when chk1 check then chk2 enable is false, however, since the form is continue form, when I check Chk1 then all the chk2 is disable on all the records, what I want to do is when I check chk1 in record 1 the only the chk2 is diable on record 1 and both chk1 and chk2 are enable on record2.  Also any other problem is after I close the form and reopen the form again, the chk2 on recrod1 is not disable.  what did I do wrong.  I have the coding on on_click of both chk1 and chk2.

thanks
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
Private Sub chk1_Click()
If chk1 = True Then
   chk2.Enabled = False
Else
   chk2.Enabled = True
End If
End Sub

Private Sub chk2_Click()
If chk2 = True Then
   chk1.Enabled = False
Else
   chk1.Enabled = True
End If

End Sub

Answer : Check box probles

and you may need to use also the current event of the form

private sub form_current()
me.chk2.enabled= not me.chk1

me.chk1.enabled=not me.chk2

end sub
Random Solutions  
 
programming4us programming4us