thatlemhome
Registered User.
- Local time
- Today, 13:38
- Joined
- Mar 31, 2009
- Messages
- 26
I have an options group that I have hard-coded report timeframes, such as previous month, previous 3 months, etc.
Is there a way to write code that will run the designated timeframe?
In the query I have a month field and year field. Does Access keep the month and year straight if I had simply a month field?
In other words, if I said I wanted to run a report for the previous 6 month timeframe, something like ... (month(date())-7) to (month(date())-1) ...
that crossed the year, so that maybe 2 months in the current year and 4 months in the previous, is there a good way to do this?
Currently the month field runs off code 1-12 and year as a numerical field, but am open to suggestions. However, I am trying to avoid using a "Between" expression which would force staff to enter individual dates instead of a Month for month-end summary data.
Any suggestions would be helpful.
Is there a way to write code that will run the designated timeframe?
In the query I have a month field and year field. Does Access keep the month and year straight if I had simply a month field?
In other words, if I said I wanted to run a report for the previous 6 month timeframe, something like ... (month(date())-7) to (month(date())-1) ...
that crossed the year, so that maybe 2 months in the current year and 4 months in the previous, is there a good way to do this?
Currently the month field runs off code 1-12 and year as a numerical field, but am open to suggestions. However, I am trying to avoid using a "Between" expression which would force staff to enter individual dates instead of a Month for month-end summary data.
Any suggestions would be helpful.