NetTalk Central

Author Topic: Save Form after priming fields  (Read 3549 times)

astahl

  • Sr. Member
  • ****
  • Posts: 308
    • View Profile
    • Email
Save Form after priming fields
« on: January 13, 2017, 09:19:24 AM »
Hi All,

I have a parent form that is primed with required fields and would like to save it when entering the form.

From the parent form a button calls the child form and the user fills the child form and returns back to the parent.

I read on this forum that there is a setting on the form that allows one to do this but cannot find it.


Ashley
« Last Edit: January 14, 2017, 05:23:03 AM by astahl »

astahl

  • Sr. Member
  • ****
  • Posts: 308
    • View Profile
    • Email
Re: Save Form after priming fields
« Reply #1 on: January 14, 2017, 06:38:27 AM »
Hi All,

I found the solution using this in the embed "PreInsert" after the fields were primed.

Access:FileName.UseFile()
IF NOT Access:FileName.Insert() THEN
  ans = net:ChangeRecord
END

Ashley