Change FROM:
Quote:IF @ISNEW THEN {
Info = @FormFieldValue("dispatch", "Company Name",info)
}
TO:
Quote:IF @ISNEW THEN {
Info = @FormFieldValue("dispatch", "Company Name",0)
}
The "0" represents a single record in a record set. "0" is the current record.
----------------------------------------------
The code above is executed when the subform is opened.
Your recent message says that you do not want to enter the subform.
In that case, try the following code in the parent form, (possibly in the Company Name element triggered on the ElementChanged event?):
FormFieldValue("SubForm","Info",0,Company Name)
This only updates the element field of the current record in the subform. If you want to put this into multiple records in the subform then you would have to put this line into a loop.
(See pages 171,172 of Sesame Programming Guide).
----------------------------------------------------------