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

Help...Combo boxes..and query

Status
Not open for further replies.

lamtbs

Vendor
Jul 10, 2001
3
HK
I have created a form with 3 combo boxes (c1, c2, and c3). I create a button to activate a query to call up the records that matches the selections. Right now, in my query I create a "Or" select query where any criteria that matches with bring up the records. For example, I select c1 and c2, and all the records that have c1 OR c2 with show up.

My question is: is there a simple way to create a query that with give the following results:

select c1 & c2 from the form and give me all records that have c1 AND c2
select c1 & c2 &3 from the form and give me all records that have c1 AND c2 AND c3
but select c1 only with give me records with c1 only
select c2 only with give me records with c2 only
select c3 only with give me records with c3 only

Another word can I combine "OR" and "AND" in one single select query.

I know how I did it is stupid. Please suggest other methods.
Thank you...
 
Not sure if you have the smae problems a me, but i got pointed to a helpful FAQ 702-681

Take a look. I will keep an eye on this thread to see if what you find out will help me also. As i feel you are a bit further on than I, so any help would be grateful? You may see the thread that i posted? Thank you for your help already.

Matt Pearcey
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top