I have a form that asks for the user to input a NEW customer name. I want to check the existing customers to see if the input already exists.
So far I have:
CustomerName is my textbox that is being filled with the information.Code:Private Sub CustomerName_AfterUpdate() Companychk = DCount([Me.CustomerName], "tblCustomer", "[CustomerName]") If Companychk > 0 Then MsgBox ("There is already a customer with this name. You cannot create this a new customer") End If End Sub