J
Jake
Hi,
I have a table that contains many yes/no fields. "Attribute 1",
"Attribute 2", "Attribute 3", etc. I would like to set up a query whose
criteria for these fields comes from a form with a check box for each field.
I tried using a reference to a check box control on a form as the criteria in
the query. For example, the criteria for "Attribute 1" in the query would be
[forms]![formname].[Attribute 1] I named the control after the field. The
problem with this is, since every field has this criteria, if Attribute 1 is
checked on the form the query will return all records with a "yes" value in
this field, but if any other attribute fields are also "yes", that record is
not included. I want those records included as well. Can someone tell me
how to construct a query that will do this? I also need to be able to check
multiple boxes on the form and return records that have a "yes" for all those
boxes, but also not exclude any records that may have additional fields that
contain a "yes".
thanks
I have a table that contains many yes/no fields. "Attribute 1",
"Attribute 2", "Attribute 3", etc. I would like to set up a query whose
criteria for these fields comes from a form with a check box for each field.
I tried using a reference to a check box control on a form as the criteria in
the query. For example, the criteria for "Attribute 1" in the query would be
[forms]![formname].[Attribute 1] I named the control after the field. The
problem with this is, since every field has this criteria, if Attribute 1 is
checked on the form the query will return all records with a "yes" value in
this field, but if any other attribute fields are also "yes", that record is
not included. I want those records included as well. Can someone tell me
how to construct a query that will do this? I also need to be able to check
multiple boxes on the form and return records that have a "yes" for all those
boxes, but also not exclude any records that may have additional fields that
contain a "yes".
thanks