View Full Version : quote subform object


Romy Huang
01-19-2005, 05:55 AM
I have a form which has a subform. Subform name is form1. OnDepart event of text object "repname" in topparent, I have this line:
form1:REP1.text = topparent:REPNAME.text

there is always a error, "form1:REP1 not found." Any one have this kind experience. Please give me some advice. Thank in advance.


Stan Mathews
01-19-2005, 06:26 AM
Using the xbasic explorer I do not see any way to reference objects on the subform. The subform object itself is available but the fields on the subform are not.

Romy Huang
01-19-2005, 10:18 AM
how to pass value or text to subform? Thanks.

Stan Mathews
01-19-2005, 10:49 AM
Maybe use the form value to set the value in the child table field (writing directly to the table) and resynch() the form to the set?

Louis Nickerson
01-21-2005, 06:51 AM

Take a look at this post. It might send you in the right direction.



Romy Huang
01-21-2005, 07:25 AM
Thank Louis so much. It is what I wanted.