Hi all,
I have been trying to resolve an issue for 2 days now. I have tried to write a query which looks at the date each policy commences and based on that, I want to state what the next anniversary is. I have broken this down so that I have one column for the year (which is either this year or next year, depending on where the anniversary lands), then the month, then the day.
This all seems fine, but then as soon as I try to bring all 3 values together to make a date - I have tried CDate and DateSerial for this - then I am unable to filter this column. I just get the error message "Data type mismatch in criteria expression".
Anyone have any ideas what may be causing this issue??
I have been trying to resolve an issue for 2 days now. I have tried to write a query which looks at the date each policy commences and based on that, I want to state what the next anniversary is. I have broken this down so that I have one column for the year (which is either this year or next year, depending on where the anniversary lands), then the month, then the day.
This all seems fine, but then as soon as I try to bring all 3 values together to make a date - I have tried CDate and DateSerial for this - then I am unable to filter this column. I just get the error message "Data type mismatch in criteria expression".
Anyone have any ideas what may be causing this issue??