A
Amelia
I have an inventory form that I have a sold check box on. Once the check box
is marked that the item is sold, I want it to be disabled ( I also have an
embedded macro that runs when it is clicked to open the sold form to fill in
the buyer information). So I tried to run this code:
If Me![Sold] = yes Then
Me![Sold].Enabled = no
Else
Me![Sold].Enabled = yes
End If
In the After update event. It errors out saying it can't disable the control
while it has the focus. That makes sense. But then I am not sure where I
should put the code? Or if there is a better way to do this let me know! I
want to mark individual records, I don't want to disable it for all records.
is marked that the item is sold, I want it to be disabled ( I also have an
embedded macro that runs when it is clicked to open the sold form to fill in
the buyer information). So I tried to run this code:
If Me![Sold] = yes Then
Me![Sold].Enabled = no
Else
Me![Sold].Enabled = yes
End If
In the After update event. It errors out saying it can't disable the control
while it has the focus. That makes sense. But then I am not sure where I
should put the code? Or if there is a better way to do this let me know! I
want to mark individual records, I don't want to disable it for all records.