Hi,
Ik have a form on which the user can fillin a few field that are used to filter a query to make a report.
On the form is also a button to run the report in preview mode.
The fields used are usually drop down lists from which the user then selects one item.
The query criterium is then:
Like [Forms]![frm_rapporten].[cmb_rap_am] & "*"
This line i use to filter the report and if the user did not choose an item from the combobox [cmb_rap_am] it will not filter on thsi field.
Now, i also have a yes/no field on the form.
If the yes/no box is checked i would like all records where this field is set to "Yes" to be EXcluded from the recordset.
If the yes/no box is not checked, there should not be a filter set on this field.
Does anybody know how to achieve this in te criterium part of a query ?
Any help would be greatly appreciated !
Thanks,
Pierre
Ik have a form on which the user can fillin a few field that are used to filter a query to make a report.
On the form is also a button to run the report in preview mode.
The fields used are usually drop down lists from which the user then selects one item.
The query criterium is then:
Like [Forms]![frm_rapporten].[cmb_rap_am] & "*"
This line i use to filter the report and if the user did not choose an item from the combobox [cmb_rap_am] it will not filter on thsi field.
Now, i also have a yes/no field on the form.
If the yes/no box is checked i would like all records where this field is set to "Yes" to be EXcluded from the recordset.
If the yes/no box is not checked, there should not be a filter set on this field.
Does anybody know how to achieve this in te criterium part of a query ?
Any help would be greatly appreciated !
Thanks,
Pierre
Comment