A
Amelia
Okay, I have an inventory form. Once an item is sold I have a check box that
is to be checked and then it opens a new form that I can enter who it was
sold to etc...
What I want to do is disable the check box once it is set to true. I have
tried entering this in the after update property event:
If Me![Sold] = yes Then
Me![Sold].Enabled = no
Else
Me![Sold].Enabled = yes
End If
But it errors: Run time error 2164, You can't disable a control while it has
the focus. Okay, I understand that . But then where can I put the code so it
disables the check box and disables it for only that record??
is to be checked and then it opens a new form that I can enter who it was
sold to etc...
What I want to do is disable the check box once it is set to true. I have
tried entering this in the after update property event:
If Me![Sold] = yes Then
Me![Sold].Enabled = no
Else
Me![Sold].Enabled = yes
End If
But it errors: Run time error 2164, You can't disable a control while it has
the focus. Okay, I understand that . But then where can I put the code so it
disables the check box and disables it for only that record??