G
Guest
I need to get the data for last month if the current date is within a week of
the start of the month or else return the current months data. This is an
expession in the citeria for a query.
It's not the date expressions as they run fine on their own, and I have even
forced the evaluated expression to just True or False and still it does not.
I don't have any messages so no syntax errers are obvious.
IIf(DateDiff("ww",DateValue(Month(Date()) & "/1/" & Year(Date())), Date()) <
1, 'Between #2/1/2005# And #2/28/2005#', 'Between #1/1/2005# And #1/31/2005#')
the start of the month or else return the current months data. This is an
expession in the citeria for a query.
It's not the date expressions as they run fine on their own, and I have even
forced the evaluated expression to just True or False and still it does not.
I don't have any messages so no syntax errers are obvious.
IIf(DateDiff("ww",DateValue(Month(Date()) & "/1/" & Year(Date())), Date()) <
1, 'Between #2/1/2005# And #2/28/2005#', 'Between #1/1/2005# And #1/31/2005#')