I have a form that collects criteria for a report (and the underlying query).
One of the criteria is a status. There are times when a user might want to see a specific status, for example, status = 1. No problem. But I want to also include the possibility to see all records where status is less than 3.
I can easily pass either 1 or 3 from a status field on the form to the query using standard [Form]![field] convention, but I can't pass the whole expression like =3 or <3. It won't accept the comparision operator and I can't think of a way to make it variable.
Am I just looking at this totally wrong? How else might I accomplish what I want.
I am trying to avoid calling a whole bunch of different queries because I have a number of criteria on the form and there are a lot of different statuses.
Any help would be appreciated!
Thanks
One of the criteria is a status. There are times when a user might want to see a specific status, for example, status = 1. No problem. But I want to also include the possibility to see all records where status is less than 3.
I can easily pass either 1 or 3 from a status field on the form to the query using standard [Form]![field] convention, but I can't pass the whole expression like =3 or <3. It won't accept the comparision operator and I can't think of a way to make it variable.
Am I just looking at this totally wrong? How else might I accomplish what I want.
I am trying to avoid calling a whole bunch of different queries because I have a number of criteria on the form and there are a lot of different statuses.
Any help would be appreciated!
Thanks