C
cainentm
Using Access2000, I am trying to use an unbound form to specify the criteria
for my query. In the unbound form, I have multiple fields, where any of them
may be filled in to further filter the results. In cases where the field is
left blank, it should be assumed that the results should not filter based on
that criteria. For example, if my table has Department, Part#, Category,
Defect, and Type - I may want to sort all records in a specific Department,
without regards to the other fields. However, I may want to locate records
that are from a specific Department, for a specific Category, and a specific
Type. To enter the criteria for the query, I set the criteria field to look
at the combo box on my unbound form. But if any of the fields is left blank,
I get no records returned. Can anyone help with how to leave criteria fields
blank on the form?
for my query. In the unbound form, I have multiple fields, where any of them
may be filled in to further filter the results. In cases where the field is
left blank, it should be assumed that the results should not filter based on
that criteria. For example, if my table has Department, Part#, Category,
Defect, and Type - I may want to sort all records in a specific Department,
without regards to the other fields. However, I may want to locate records
that are from a specific Department, for a specific Category, and a specific
Type. To enter the criteria for the query, I set the criteria field to look
at the combo box on my unbound form. But if any of the fields is left blank,
I get no records returned. Can anyone help with how to leave criteria fields
blank on the form?