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!

Merge criteria in query for display in combo box

Status
Not open for further replies.
May 5, 2000
168
US
Want to use combo box for selecting criteria to print on report.&nbsp;&nbsp;Report prints employee list for a selected office, ie.,&nbsp;&nbsp;Ohio, Cleveland, San Francisco, Oakland, New York.&nbsp;&nbsp;But, I would like the underlying query to combine San Francisco and Oakland so combo box would display Bay Area Offices and report should print SF and Oakland together if Bay Area is selected from combo box.<br><br>How should I set up query?
 
on Query<br>Area:IIF([city] = &quot;Oakland&quot; or [City] = &quot;San Fransico&quot;,&quot;Bay area&quot;,[City])<br><br>on report<br>IIF([Area] = &quot;Bay area&quot;,&quot;Oakland/San Fransico&quot;,[City])<br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top