scrair
asked on
Cancelling a new record
I have a form to enter client names into a large client list that is used in different places throughout my database. I want to have a submit button and a cancel button. However, i basically built a form with one single textbox, and if you enter anything into the textbix, it starts a new record and enters the portion of the data. So, How do I cancel this record? If i have already entered some of the name, and want to cancel...how do use a "Cancel" button to erase that particular record? Thanks for the help.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The way I do something similar is to have the additions done in a working table. This table is just like the big final table but without an autonumber. Then if the user is happy with the record(s) there is a button on the form for the working table to append working table to final table and delete records in working table. If the user is unhappy, there is another button which just deletes records in the work table (no append).
You can also use the working table idea if you are adding multiple records and want to set a default with effecting the big table.
Jack
You can also use the working table idea if you are adding multiple records and want to set a default with effecting the big table.
Jack
Try to play with BeforeInsert event for your form, here you can cancel insertion of new record.
ASKER
Thanks for all your help Jim
Jim.