Parameter query using combo boxes adding a filter

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello!

I am using combo boxes (4) to populate the criteria for a query. Users can
select by Industry (legal, medical, computer, etc) Occupation (programmer,
doctor, attorney ...) Type (corp, individual, partnership...) and City. The
users now want to use the first three, and have City as a filter, (AND rather
than OR), but only if they select a city. For example, they might want to see
ALL doctors regardless of city, then they might want to see doctors within a
particular city.

I know that I should know how to do this, however my brain can not seem put
it together today.

Thank You for your help
 
In your query add the following on each criteria row under field for city --
Like [Forms]![YourForm]![ComboBoxCity] & "*"
 
Thank You Karl!


KARL DEWEY said:
In your query add the following on each criteria row under field for city --
Like [Forms]![YourForm]![ComboBoxCity] & "*"

Kirk Leader said:
Hello!

I am using combo boxes (4) to populate the criteria for a query. Users can
select by Industry (legal, medical, computer, etc) Occupation (programmer,
doctor, attorney ...) Type (corp, individual, partnership...) and City. The
users now want to use the first three, and have City as a filter, (AND rather
than OR), but only if they select a city. For example, they might want to see
ALL doctors regardless of city, then they might want to see doctors within a
particular city.

I know that I should know how to do this, however my brain can not seem put
it together today.

Thank You for your help
 

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

Back
Top