I am trying to add this record to the database and get this error. Object Variable or With Block Variable not set.
Private Sub cmdAdd_Click()
On Error GoTo ErrLabel
adoRecordset.AddNew
txtCustomerLastName.Text = ""
txtCustomerFirstName.Text = ""
Exit Sub
ErrLabel:
MsgBox Err.Description, vbInformation
End Sub
Private Sub cmdAdd_Click()
On Error GoTo ErrLabel
adoRecordset.AddNew
txtCustomerLastName.Text = ""
txtCustomerFirstName.Text = ""
Exit Sub
ErrLabel:
MsgBox Err.Description, vbInformation
End Sub