SetFocus and Disable

C

Carla

I set the focus to a form control, set the value, and then try to disable but
I can't disable the control with the focus.
 
R

Rick Brandt

Carla said:
I set the focus to a form control, set the value, and then try to
disable but I can't disable the control with the focus.

So set focus somewhere else first.

By the way, in code you do not need to set focus before you set the value.
You might be trying to set the Text value instead which DOES require focus,
but in Access the Value property is the correct one to use.
 
Top