Returning a wildcard or value

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have created a form from which to create tailored reports via several
unbound input fields. There is an underlying query to form these reports.
What I am trying to do is create criteria expressions that will take the
value entered and use that as a criteria and if no value is entered in the
form to not have criteria on that value.

I have attempted to use IIf statements unsucessfully.

Basically what I want it to do is:
If the control on the form has had data entered, use that as criteria for
the query
If the control on the form has not had data entered, then act like there is
no criteria.

Many thanks in advance for any assistance.
 
You are a star, Many many thanks.

KARL DEWEY said:
Like [Forms]![YourForm]![YourInputField] & "*" or Is Null

Nathan Hughes said:
I have created a form from which to create tailored reports via several
unbound input fields. There is an underlying query to form these reports.
What I am trying to do is create criteria expressions that will take the
value entered and use that as a criteria and if no value is entered in the
form to not have criteria on that value.

I have attempted to use IIf statements unsucessfully.

Basically what I want it to do is:
If the control on the form has had data entered, use that as criteria for
the query
If the control on the form has not had data entered, then act like there is
no criteria.

Many thanks in advance for any assistance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top