help!!! can't call method on control that doesn't have focus error

  • Thread starter Thread starter dan
  • Start date Start date
D

dan

I have a form with a derived field, for which I have
created a text box. When I set the value (form within the
Form's OnCurrent event handler), an error appears, saying
that I can't call a method/set properties of a control
that doesn't have the focus. Can anyone tell me what I'm
meant to do to get around this?

Many thanks,

Dan.
 
Can you give more info? I glean from your post that
(1) Your textbox has an expression as its control source. If this is
true, you cannot change its value via code.
(2) You may be trying to change the textbox's Text property. This
property is accessible only when the textbox has the focus. In ACCESS, use
the Value property instead.
 
Back
Top