On the On Open Event of a form I have this code:
Me![TID2] = DLookup("[TID]", "tblTaskMemo", "[IID]='" & Forms![frmInvoiceEdit]![IID] & "'" And _
"[TID]='" & Forms![frmInvoiceEdit]![TID] & "'")
[TID2] is an unbound text box and all the fields in the DLookup are text. I am getting a type mismatch error. Can anyone tell me what I'm doing wrong?
Me![TID2] = DLookup("[TID]", "tblTaskMemo", "[IID]='" & Forms![frmInvoiceEdit]![IID] & "'" And _
"[TID]='" & Forms![frmInvoiceEdit]![TID] & "'")
[TID2] is an unbound text box and all the fields in the DLookup are text. I am getting a type mismatch error. Can anyone tell me what I'm doing wrong?