DEllis
Active Member
- Joined
- Jun 4, 2009
- Messages
- 344
- Office Version
- 365
- Platform
- Windows
Hi everyone, I want to pull everything in a query criteria if only a year is selected on a report dashboard. So I select the year and I get nothing. If I select a month, then I get just those for the month. Can anyone tell me what is going on with my logic here.
IIf([FORMS]![Reporting Dashboard]![Month_Listbox] Is Not Null,[forms]![Reporting Dashboard]![Month_Listbox],'*')
So how I read this is if, the month list box is not null (something is selected) then give me the months for the year I selected; however, if it is null, give me all data for the year.
If I put the number 5 where the asterisk is, I get I do get the month. But what I want is everything if only the year is selected.
Help please.
Thank you,
DEllis
IIf([FORMS]![Reporting Dashboard]![Month_Listbox] Is Not Null,[forms]![Reporting Dashboard]![Month_Listbox],'*')
So how I read this is if, the month list box is not null (something is selected) then give me the months for the year I selected; however, if it is null, give me all data for the year.
If I put the number 5 where the asterisk is, I get I do get the month. But what I want is everything if only the year is selected.
Help please.
Thank you,
DEllis