brucesilvers
Registered User.
- Local time
- Today, 09:49
- Joined
- Aug 4, 2000
- Messages
- 70
Need to capture the correct months of data for proper sales reporting. There are two scenarios: 1) It is January and we want to view the entire previous year's data (have year parameter working correctly already); or 2) It is not January and we only want to capture data for the previous month and earlier. Eg, if it is May, we only want to include sales from January through April.
This is how I'd like to do it, but I can't figure out the proper Parameter IIf statement:
Field: Month(
![InvoiceDate])
Where
Parameter: IIf(Month(Now())=1, All months, All months less than the Month(Now()))
I'm doing this within the query design grid rather than straight SQL, but I could easily figure out where to paste the SQL for the IIf statement. Thanks for you assistance!
This is how I'd like to do it, but I can't figure out the proper Parameter IIf statement:
Field: Month(
Where
Parameter: IIf(Month(Now())=1, All months, All months less than the Month(Now()))
I'm doing this within the query design grid rather than straight SQL, but I could easily figure out where to paste the SQL for the IIf statement. Thanks for you assistance!