disable check box

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I can't get the following code to work for each record in my subform. It
works but when Accepted is checked it disables in all records, How can I fix
it so it will focus on each individual record? Here is the code I have so far.
Thanks in advance.
Alvin


Private Sub Form_Current()
If Me.Accepted = -1 Then
Me.Rejected.Enabled = False
Me.Repair.Enabled = False
Me.RepairComplete.Enabled = False
Else
Me.Rejected.Enabled = True
Me.Repair.Enabled = True
Me.RepairComplete.Enabled = True

End If

End Sub
 
dont put it in the form current event - use accepted_onclick event
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top