In our application, the following buttons allow users to add employee records
to the database:
· Add
· Commit
To add a record, the user clicks on the Add button, enters the new fields in
the text boxes, and clicks the Commit button to save the data to the database.
The code for the Add function is split between the event procedures for the
Add and Commit buttons. Refer to the following sections:
Coding the Add ButtonCoding the Commit Button (Add)