Hi there
I have a Dlookup to get the value of the CurrentInvoiceID but it returns with a Type Mismatch error. All the fields are numeric and CurrentInvoiceID
and CurrentContactID have been declared as long.
I also need to add NZ() for null values.
Any help is highly appreciated.
Thanks
I have a Dlookup to get the value of the CurrentInvoiceID but it returns with a Type Mismatch error. All the fields are numeric and CurrentInvoiceID
and CurrentContactID have been declared as long.
I also need to add NZ() for null values.
Any help is highly appreciated.
Thanks
Code:
CurrentInvoiceID = DLookup("InvoiceID", "tblInvoices", "ContactID=" & CurrentContactid) & " and dogid = & 0"