V
vavroom
I've searched the archives, but can't seem to find the answer to my
question.
On a report, I have a date field. I need to determine which of three
date ranges that date falls in, and based on that return a different
value to a textfield.
I can't seem to be able to figure out how to make this happen in the
code behind the report
Can someone point me in the right direction?
I've tried playing with Format() and other things, but no matter how I
look at it, it isn't working.
the date field is formatted this way in the table:
dd mmm yyyy hh:nn AM/PM
(and I cannot change the format)
The date ranges are
1- between 31 October and 4 november
2- between 6 november and 10 november
3- between 12 november and 16 november
Writing:
if me.date between #31/10/2006# and #04/11/2006# then
doesn't do the trick at all.
Any ideas?
question.
On a report, I have a date field. I need to determine which of three
date ranges that date falls in, and based on that return a different
value to a textfield.
I can't seem to be able to figure out how to make this happen in the
code behind the report
Can someone point me in the right direction?I've tried playing with Format() and other things, but no matter how I
look at it, it isn't working.
the date field is formatted this way in the table:
dd mmm yyyy hh:nn AM/PM
(and I cannot change the format)
The date ranges are
1- between 31 October and 4 november
2- between 6 november and 10 november
3- between 12 november and 16 november
Writing:
if me.date between #31/10/2006# and #04/11/2006# then
doesn't do the trick at all.
Any ideas?