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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parameter Query using a combo box - question

Status
Not open for further replies.

Kyosa

Technical User
Jun 12, 2000
47
US
I have a form set up using multipe combo boxes to define my parameters for a query and subsequent report. my question is how to set it up such that all records can be printed if no selection is made in a combo box.<br><br>(ie. if i choose a selection in the first box but leave the next one alone how can i make it such that all of the options determined by the second box are included in my query)<br><br>did i confuse you?? i think i confused myself!!! any insights would by greatly appreciated!!!!!!!
 
one simple way.<br>&nbsp;in the query&nbsp;&nbsp;put Like IIf([forms]![yourform]![combo#] = &quot;&quot;,IIf([forms]![yourform]![combo#] ,&quot;*&quot;)<br>may need to play with the syntax
 
Like IIf([forms]![yourform]![combo#] = &quot;&quot;,[forms]![yourform]![combo#] ,&quot;*&quot;)<br><br>Sorry had an extra IIf in the first post<br>
 
Thanks for your help!!! I'll give that a try!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top