I'm trying to set the value of a text field on the AfterUpdate event of a combo box with:
Me.txtCustName = DLookup("[CustName]", "tblCustomers", "[IntCustNum] = '" & [cboIntCustNum] & "'")
But I keep getting a data mismatch error.
Is there something wrong with the format of my Dlookup?
Me.txtCustName = DLookup("[CustName]", "tblCustomers", "[IntCustNum] = '" & [cboIntCustNum] & "'")
But I keep getting a data mismatch error.
Is there something wrong with the format of my Dlookup?