Hi all
Trying to pass the value from a textbox to another form and i get an error .
The error is this :
Microsoft Office Access can't find the field "|" referred to in your expression.
What i have is a form called " names_form", with a textbox called "txtname" and another form called "searched_f orm" , with a label called "lbl_searchedte xt"
When i type some text into "txtname" and i click a button , i want to display the text in the label " lbl_searchedtex t" on the "searched_form" .
The code i have now is this, and is placed on the "searched_f orm" load event.
I found the code somewhere online and the guy who posted said is working ,but for me is NOT,
Any help , please.
Trying to pass the value from a textbox to another form and i get an error .
The error is this :
Microsoft Office Access can't find the field "|" referred to in your expression.
What i have is a form called " names_form", with a textbox called "txtname" and another form called "searched_f orm" , with a label called "lbl_searchedte xt"
When i type some text into "txtname" and i click a button , i want to display the text in the label " lbl_searchedtex t" on the "searched_form" .
The code i have now is this, and is placed on the "searched_f orm" load event.
Code:
Dim text As String text = [names_form]![txtname].text lbl_searchedtext.Caption = text lbl_searchedtext.Visible = True
Any help , please.
Comment