SetFocus and Disable

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

Guest

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.
 
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.
 

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