Why not use an option group instead of individual check boxes. That way only
one or the other can be selected at a time!
If you want to use your method though, you don't want to check for enabled
because even when it's not selected it's still enabled just not checked.
What you want to check for is true(-1) or False(0) Like so:
Private Sub chkPaid_Click()
If chkPaid = True Then ' if it's selected it equals true or -1
chkPartial_Paid = False
Else
chkPartial_Paid = True
End Sub
'and use this for chkPartial_Paid
Private Sub chkPartial_Paid _Click()
If chkPartial_Paid = True Then ' if it's selected it equeals true or -1
chkPaid = False
Else
chkPaid = True
End Sub
--
Reggie
www.smittysinet.com
----------
"Kufre" <ku*******@hotmail.com> wrote in message
news:47**************************@posting.google.c om...
I need anyone that have done this before to help me. I'm creating a
form in Access, in the form has two two checkbox, checkbox A is paid,
checkbox B is partial_paid. I want the set the checkbox so that if the
user click on checkbox A which is Paid, then checkbox B which is
partial_paid should be disable, visa versa, then if checkbox A which
is Paid is uncheck then checkbox B becomes visible. This is the code
I have so far but when I uncheck checkbox A, checkbox B does not
appear. Please help me.
Private Sub chkPaid_Click()
If chkPaid.Enabled = True Then
chkPartial_Paid.Visible = False
chkPartial_Paid.Locked = False
Else
chkPaid.Enabled = False
chkPartial_Paid.Visible = False
chkPartial_Paid.Locked = True