Setting Data Into New Record
Chuck Pelto
cbpelto at pcisys.net
Wed Jan 25 10:56:53 CST 2006
Looks like it does work...
On Jan 25, 2006, at 10:25 AM, Chuck Pelto wrote:
> Is there anything special in a call to set a single field of a
> newly created record to a particular value?
>
> I'm interested in creating a new record in a table the moment
> someone creates a new row in an RB2005 listbox. I want to set a
> pointer field in that newly created record to point to the record
> in another table.
>
> The code I have so far is:
>
> childRecID = App.tblChild.AddRecord() // make new child record and
> capture the new record's ID
>
> I want to add the recID for the parent record to the newly created
> child record.
>
> Is Valentina pointing to the newly created record in the child
> table at this point, so that a simple...
>
> App.tblChild.Field("chld_parentptr") = parentRecID
>
> ...sufficient?
>
> Regards,
>
> Chuck
> _______________________________________________
> Valentina mailing list
> Valentina at lists.macserve.net
> http://lists.macserve.net/mailman/listinfo/valentina
>
More information about the Valentina
mailing list