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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Me.txtTextBox1 = Form_frmForm.txtTextBox2 Doesn't Work 1

Status
Not open for further replies.

alexbel

Technical User
Jun 27, 2004
77
US
Hi,

In the report OnOpen Event, I have the following code:

Code:
Me.txtTextBox1 = Form_frmForm.txtTextBox2

For some reason it doesn't work. How can I make this work?

Thank you
 
Try using the on format event of the section where txtTextBox1 resides, and, if the form name is frmForm, try:

[tt]forms!frmForm!txtTextBox2[/tt]

Roy-Vidar
 
Hi Roy,

So I would put the following in the OnFormat Event:

Code:
Me.txtTextBox1 = Forms!frmForm!txtTextBox2

If this is right, it doesn't seem to work. Nothing just appears in the spot where the value should be.

Thank you
 
In the on format event of the section where the control resides (detail?), yes. Is the form open, and the control having any data? The txtTextBox2 will also need to be unbound.

Or just use the expression in the controlsource of the control:

[tt]=Forms!frmForm!txtTextBox2[/tt]

Roy-Vidar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top