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.

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.

Featured Post

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…

Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…

In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another.
Base the dependent combo on a query for its row source:
Add a reference to the first combo on the form as criteria i…