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

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

Ken Snell

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.
 

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

Top