Hi Richard, I've changed it to eliminate the space - it now reads: ContactNotes: IIf(IsNull([MaxOfDateTime]),"No Contacts",DLookUp("Notes","ContactT","CustomerID=" & [CustomerID] & " AND DateTime=#" & [MaxOfDateTime] & "#")) However it is still reporting the same error. Could there perhaps be something wrong in the table its referring to - I just need some guidance on where to 'look'. I appreciate also, that you don't just 'solve' my problem, you guide , which is fabulous!
Lynda
Reply from Richard Rost:
Does the DLOOKUP work WITHOUT being inside of an IIF function?
Sorry, only students may add comments.
Click here for more
information on how you can set up an account.
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
Access Expert 11.