ClearFields Clear all the fields on the form. FindCustomer Find a customer in the database using the Find method on the Customer object. Executes code that implements the shortcut keys for the command buttons on the form. We did this because we used graphics on our command buttons without captions. We did this because we used graphics on our command buttons without captions.
Email is required to lookup customer.
SetFocus Else FindCustomer txtEmail. On Error GoTo ErrorHandler objCustomer. Your record was not added. This customer may already exist. Caption Else Err.