I am dealing with table1.LastSubmit.ID, NewForm and submit data on two table to sql server.
so in case EditForm, it should take id(autonumber)(from table1) and saved it table2. in case FormNew(table1) I am using table1.LastSubmit.ID which works fine.
how do I do condition to apply if editform then take existing id from form(table1) and incase of new records take table1.LastSubmit.ID
I am using SubmitForm; Patch(table2,deafults(table2,{id:table1.LastSubmit.ID}) works fine. but want to apply condition like above.

Report
All responses (
Answers (