G
Guest
I have a table with data field year, state and value. I'm trying to run a
query for the table with criteria: If user select "report1" in the report
list, then exclude TAS from the data set, otherwise, include all data for all
other selection. The following is the criteria I've put into the query.
Like
IIf([Forms]![frReportFilter]![ReportList]="Report1",([DataTable].[State])<>"TAS","*")
The query runs fine for all other report, but everytime when I run
"report1", the query will return no data (although there are over hundreds of
data in the data table). Could anyone tell me where I went wrong in my
condition?
query for the table with criteria: If user select "report1" in the report
list, then exclude TAS from the data set, otherwise, include all data for all
other selection. The following is the criteria I've put into the query.
Like
IIf([Forms]![frReportFilter]![ReportList]="Report1",([DataTable].[State])<>"TAS","*")
The query runs fine for all other report, but everytime when I run
"report1", the query will return no data (although there are over hundreds of
data in the data table). Could anyone tell me where I went wrong in my
condition?