sao123
Lifer
So, im still developing a VBA-less database, and this time i have encountered a new situation, I dont know how to solve.
I have a field in a table which is simply a yes/no.
One of the reports we typcially run, I need 2 version of the report.
1 version of the report only includes records with a yes, the other includes all records. (consider this a sort of pseudo filter via query)
i have a combo control on my form designed to tell the report to query on only yes's, or on all values.
In the query my query criteria is:
IIF([Forms]![Switchboard]![Limit] = 1, 1, 1 or 2)
this translates into
IIF([Forms]![Switchboard]![Limit] = yes, yes, yes or no)
[these values are in a related table...]
1 yes
2 no
but this doesnt work. specifically the "1 or 2" part in the false statement, is the part which isnt working.
i have tried "1 or 2", "*", and a few others.
is there a "all values" I can use in my IIF statement?
I have a field in a table which is simply a yes/no.
One of the reports we typcially run, I need 2 version of the report.
1 version of the report only includes records with a yes, the other includes all records. (consider this a sort of pseudo filter via query)
i have a combo control on my form designed to tell the report to query on only yes's, or on all values.
In the query my query criteria is:
IIF([Forms]![Switchboard]![Limit] = 1, 1, 1 or 2)
this translates into
IIF([Forms]![Switchboard]![Limit] = yes, yes, yes or no)
[these values are in a related table...]
1 yes
2 no
but this doesnt work. specifically the "1 or 2" part in the false statement, is the part which isnt working.
i have tried "1 or 2", "*", and a few others.
is there a "all values" I can use in my IIF statement?