Problem while saving the records [message #461532] |
Fri, 18 June 2010 10:40 |
dhanasurya
Messages: 33 Registered: May 2010
|
Member |
|
|
Hi All,
I am facing a problem while saving the records in my form.I have written code(inserting data into the custom able) in KEY-COMMIT trigger and when_buton_pressed trigger of submit button.
If i click on submit records are inserting into the custom table.After click on save button,the records are inserted again in the table.
I want to save the records only once either click on submit or click on Save button in the menu bar.
Please solve my issue.
Thanks in Advance,
|
|
|
|
Re: Problem while saving the records [message #461535 is a reply to message #461534] |
Fri, 18 June 2010 11:44 |
|
Littlefoot
Messages: 21818 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
By all means; the last Klat's sentence is probably the best solution. Why would you insert twice: once with an (unnecessary) INSERT statement (you wrote), and once again as Forms built-in functionality?
Why did you use INSERT, anyway?
|
|
|