B
Bobmeister
I am using a form to enable a user to specify criteria for a query. On this
form there are several fields that the user can fill in. I am using these
fields as And logic requiring all criteria to be met for a record to be
returned. In the Query, where I specify the criteria on which to filter the
data, I point to combo boxes in the form using this format which works when
all fields are filled out.
[Forms]![frmIndividualSearch]![cmdWho]
However if I don't fill in one of the fields in the form, then I always get
a Null result of no records from the query.
If I use fields in a form to specify criteria, how do I get the query to
ignore an empty entry when I do not fill in a field among many on the form?
Any insights on this would be appreciated.
I have unsuccessfully tried entries like:
IIf([Forms]![frmIndividualSearch]![cmdWho]=0,([ExecutedDocumentList].[IndividualID]) Like "*",[Forms]![frmIndividualSearch]![cmdWho])
form there are several fields that the user can fill in. I am using these
fields as And logic requiring all criteria to be met for a record to be
returned. In the Query, where I specify the criteria on which to filter the
data, I point to combo boxes in the form using this format which works when
all fields are filled out.
[Forms]![frmIndividualSearch]![cmdWho]
However if I don't fill in one of the fields in the form, then I always get
a Null result of no records from the query.
If I use fields in a form to specify criteria, how do I get the query to
ignore an empty entry when I do not fill in a field among many on the form?
Any insights on this would be appreciated.
I have unsuccessfully tried entries like:
IIf([Forms]![frmIndividualSearch]![cmdWho]=0,([ExecutedDocumentList].[IndividualID]) Like "*",[Forms]![frmIndividualSearch]![cmdWho])