Actually that is what I am doing, my first post was a typo (I could not find a way to edit a post)- both values are prefixed with a '?'. Field types do match up. oRec was private, but changing it to public did not change anything.
If I change all the oRec.field values to variables, it seems to work fine, but that adds other issues.
Thanks,
Troy
>Hi!
>
>Try:
>
>sqlexec(iCH, "insert into table (field1,field2) values (?oRec.field1, ?oRec.Field2)")
>
>The object "oRec" have that is Public.
>See the type of the fields.
>I hope help you.
>Bye!