D
dhoover via AccessMonster.com
I'm using the following code to piece together a due date. The problem I'm
having is that Access does not recognize the final product, DueDate as a date.
The field shows correctly, however when I try to pull clients who's duedate
is greater than another date, I get the message that data type is mismatched
in the criteria expression. I've tried using CVDate and DateValue with no
luck.
Month: DatePart("m",[reportingdate])
Year: DatePart("yyyy",[ReportingDate])
Date1: IIf(Not IsNull([ReptsDueBy]),[month] & "/" & [reptsdueby] & "/" &
[year],"")
DueDate: DateAdd("m",1,[date1])
having is that Access does not recognize the final product, DueDate as a date.
The field shows correctly, however when I try to pull clients who's duedate
is greater than another date, I get the message that data type is mismatched
in the criteria expression. I've tried using CVDate and DateValue with no
luck.
Month: DatePart("m",[reportingdate])
Year: DatePart("yyyy",[ReportingDate])
Date1: IIf(Not IsNull([ReptsDueBy]),[month] & "/" & [reptsdueby] & "/" &
[year],"")
DueDate: DateAdd("m",1,[date1])