S
Sarah
Hi All-
I am new to VBA programming, and Im working on a custom application.
I made a form called "AddCustomer". The form just opens with blank fields
allowing the user to type in a new customer's information like name and
address.
I put an 'Add' button on the form, as well as a 'Cancel' button. The cancel
button works (as in not saving the record you just entered) only when the
form is just partially filled out or not at all. However, If I were to fill
in all the fields (all required ones too) then hit cancel, it exits the
form, but it saves that new record in the database!
How come this is doing this? What command do I need to cancel the saving of
the record?
Thanks in advance!!!!
Sarah
Wilkes-Barre, PA
I am new to VBA programming, and Im working on a custom application.
I made a form called "AddCustomer". The form just opens with blank fields
allowing the user to type in a new customer's information like name and
address.
I put an 'Add' button on the form, as well as a 'Cancel' button. The cancel
button works (as in not saving the record you just entered) only when the
form is just partially filled out or not at all. However, If I were to fill
in all the fields (all required ones too) then hit cancel, it exits the
form, but it saves that new record in the database!
How come this is doing this? What command do I need to cancel the saving of
the record?
Thanks in advance!!!!
Sarah
Wilkes-Barre, PA