Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parameter Queries

Status
Not open for further replies.

bgfs

Technical User
Apr 6, 2005
130
GB
I have a parameter query which takes values from 4 comboboxes on a form. Typically the criteria is laid out like this in the query.

[Forms]![findfrm]![cbohard]

If all four fields are completed the query works fine. If I leave one or more fields however, the query returns a blank. Anyone know of a way to make the query use the information in just the completed fields and ignore the empty fields?
 
Set the criteria like:
Code:
[Forms]![findfrm]![cbohard] Or [Forms]![findfrm]![cbohard] Is Null

Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
Thanks, I found this before but the search form kept coming up with the criteria input box. I found that because I had added the criteria to the query at different times, when the null criteria had formed a new column in the query, they were out of sequence (At least I think thats what caused it) thanks anyway
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top