I have a form that users enter data about suppliers.
What I want to achieve is that when someone presses the CANCEL button that it will discard any data that may have been entered and not send it to the underlying table.
I have considered the setting all fields to a .value = "" but that would delete any data that was in the form that I actually wanted if the cancel was pressed before any new data was entered, say when a user opens the form and then presses cancel or after entering a record and was going to add another record but pressed cancel before doing so.
I was then thinking of the keyacsii value of 27 (esc) but am n ot sure how to implement it.
any help is appreciated
MB
What I want to achieve is that when someone presses the CANCEL button that it will discard any data that may have been entered and not send it to the underlying table.
I have considered the setting all fields to a .value = "" but that would delete any data that was in the form that I actually wanted if the cancel was pressed before any new data was entered, say when a user opens the form and then presses cancel or after entering a record and was going to add another record but pressed cancel before doing so.
I was then thinking of the keyacsii value of 27 (esc) but am n ot sure how to implement it.
any help is appreciated
MB