Are pay dates are the 15th and 30th.
Thanks,
Paul
So it sounds like you are saying, if you were saying this in 'English'
rather than in code:
* go back until you get to the 15th or the 30th, whichever comes first
* from there, go back to the other one BEFORE the one you got to first
* add up all the values between those two
I'm being deliberately vague, since some months have 30 days and some have
31... and while we're on that topic, how will you handle a month with fewer
that 30 days?
Good luck!
Regards
Jeff Boyce
Microsoft Office/Access MVP
> Are pay dates are the 15th and 30th.
>
[quoted text clipped - 60 lines]
>> >> >
>> >> > Paul
John Spencer - 09 Apr 2007 21:18 GMT
To get dates from the 1st to the 15th of the present month or the 16th to
the last day of the prior month based on today's date. Try something like
the following as your criteria. This should return the 16th to the last
day of the previous month as long as the current date is before the 16th.
On the 16th and later it should return the 1st to the 15th of the current
month
Between DateSerial(Year(Date()), Month(Date()) - IIF(Day(Date())>15,1,0),
IIF(Day(Date())>15,16,1))
AND DateSerial(Year(Date()), Month(Date()), IIF(Day(Date())>15,0,15))

Signature
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
.
> So it sounds like you are saying, if you were saying this in 'English'
> rather than in code:
[quoted text clipped - 79 lines]
>>> >> >
>>> >> > Paul