H
hlock
I have created two fields. The first one converts a text formatted YYYYMMDD
to a date:
Date Added: CDate(Format([QRYDWXC020]![DTEADD],"@@@@-@@-@@"))
The second one calculates the difference of the Date Added (shown above) and
the current date:
Days:
DateDiff("d",CDate(Format([QRYDWXC020]![DTEADD],"@@@@-@@-@@")),CDate(Date()))
This works fine as long as I don't have any criteria for Days. However when
I put in a criteria of >45 for days, I get a Datatype Mismatch error. I
looked at my data without the criteria and saw that I have a few zeros in the
Days field because the date added is the same as today's date.
I tried putting <>Date() as criteria in the Date Added field, but I'm still
getting an error. Can you suggest a resolution. Thanks!
to a date:
Date Added: CDate(Format([QRYDWXC020]![DTEADD],"@@@@-@@-@@"))
The second one calculates the difference of the Date Added (shown above) and
the current date:
Days:
DateDiff("d",CDate(Format([QRYDWXC020]![DTEADD],"@@@@-@@-@@")),CDate(Date()))
This works fine as long as I don't have any criteria for Days. However when
I put in a criteria of >45 for days, I get a Datatype Mismatch error. I
looked at my data without the criteria and saw that I have a few zeros in the
Days field because the date added is the same as today's date.
I tried putting <>Date() as criteria in the Date Added field, but I'm still
getting an error. Can you suggest a resolution. Thanks!