Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

You can't reference a property or method for a control....

Status
Not open for further replies.

andzejek

MIS
Sep 1, 2007
154
US
You can't reference a property or method for a control unless the control has the focus!"

this is the error message which is poping up when I'm trying to asign some text to the textbox on other(open but inactive) form. Other words: when on one form, I want to change text of the textbox of other form so when first form will be closet, other form will have textbox with new text.
Can someone help me with that?

Andrew
 
Ok. I have it!

I was using:

Forms!customer_new![textbox].text = "hello"

it should be:

Forms!customer_new![textbox].value = "hello"

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top