Here is what I be needing:
I have a tickbox, and I am wanting it to disable the tickbox if you check it, but disable it after the "Add Record" button has been pressed. I set it up by uing the AfterUpdate feature of the tickbox, but it is locking as soon as I check the box, not once the "Add Record" button is pressed. The Visaul Basik code that I used was:
Code:
Private Sub Check146_AfterUpdate()
If Me.Check146 = True Then
Me.Check134.SetFocus
Me.Check146.Enabled = False
Me.Check144.Enabled = False
Me.Check148.Enabled = False
Else
Me.Check144.Enabled = True
Me.Check146.Enabled = True
Me.Check148.Enabled = True
End If
End Sub
I also tried to set it up on the AfterClick() on the "Add Record" button, but this wouldn't even allow the record to lock.
I really want the code to read:
Code:
If Me.Check146 And Me.Check144 = True Then....
But when I tried this code, the Debugger gave no error, but Access would not disable any fields at all?