How to choose when parameter's applied in query

G

Guest

I've built a search form with about 15 controls, and I want to use those
controls to set parameter criteria for a query. But I don't want users to
have to select a value for every control, just whichever one(s) they want to
limit.

If they leave a control blank, I don't want to lose all the records in the
resultant query, NOR do I want to include an "Is Null" statement in the OR
section of the Query design, because that will just return every record if
left blank.

What I need is something that will retrieve criteria if users select/enter
it in the form, but will otherwise treat the field as if the criteria is
blank.

Is that possible?
 

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

Top