NetTalk Central

Author Topic: How to save a record from a memory form  (Read 3245 times)

Ubaidullah

  • Full Member
  • ***
  • Posts: 125
    • View Profile
How to save a record from a memory form
« on: October 28, 2020, 02:33:09 PM »
Hi Bruce,

I have a memory form that contains a NetWebForm in change mode.
I have a button on the memory form that has itself as the target.

I would like to save the record in the NetWebForm when that button is pressed.

What do I need to put in that button to achieve that?

edit: Currently, the button is calling the memory form (itself) and in Net:Web:Generate, I am updating the record with a call to Access:MyFile.Update(). Although this is working, looking for the right way. Now, I am saving the field values in Session variables and retrieving them before the update.

Thanks
&
Regards,
Ubaidullah Nubar.
« Last Edit: October 29, 2020, 07:26:18 PM by Ubaidullah »

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: How to save a record from a memory form
« Reply #1 on: October 30, 2020, 07:01:54 AM »
>> What do I need to put in that button to achieve that?

everything.
Open the table
Load the record you wish to edit.
Set the fields to whatever you like
save the record
close the file...