K
KBDB
In my VBA code I have a DLookup statement which is:
Private Sub custid_AfterUpdate()
Me.CustomerName = DLookup("[Customer Name]", "Customer File", _
"[Cust ID] = " & Me.CustID)
End Sub
I run this and I get this error:
Run Time Error 2471
The expression you entered as a query parameter produced this error:
'DT'
DT is the custID selected from the combo box.
I just don't understand what this error is trying to tell me.
Could you help?
Have you got any ideals?
Thanks,
Kathleen
Private Sub custid_AfterUpdate()
Me.CustomerName = DLookup("[Customer Name]", "Customer File", _
"[Cust ID] = " & Me.CustID)
End Sub
I run this and I get this error:
Run Time Error 2471
The expression you entered as a query parameter produced this error:
'DT'
DT is the custID selected from the combo box.
I just don't understand what this error is trying to tell me.
Could you help?
Have you got any ideals?
Thanks,
Kathleen