I have a Date field that I need to format and do a null check on. Here is what I tried so far and it doe not seem to be working. I am trying to compare two dates fields to see if they match.
Here is the code for the first field:
ADCC1: CDate(Format(IIf(IsNull([ADCC]),#1/1/1900#,[ADCC]),"mm/dd/yyyy"))
Here is the code for the second field. I do not need to format this field as it is already formatted properly:
LCD1: IIf(IsNull([LCD]),#1/1/1900#,[LCD])
Here is the Criteria I am trying to do on [LCD] to compare it to [ADCC]:
CDate(Format(IIf(IsNull([ADCC]),#1/1/1900#,[ADCC]),"mm/dd/yyyy"))
Please help as it is not returning the proper results!