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

Query problem

Status
Not open for further replies.

mama16

MIS
Oct 22, 2004
125
US
How can I create a query that ask for several things, then compare certain statistics about those things.
I've already have a query that ask the user for certain information. It only allows it for one thing

Any ideas?
 
It only allows it for one thing
Really ? What have you tried so far ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
This is what I've tried so far, a parameter. It ask for a specific state, then beginning date, ending date. My question, is it possible to do it to where it ask for multiple states, then compares them. Ex, The user chooses 5 states and wants to compare those based on their population. Can I do that in access
Any ideas,

 
yes but you will have to create your own form to allow the users to have multiple choices and then you will have to build your SQL dynamically depending on the choices the user makes.

Leslie
 
Provided you play with a not to old version of access and you enter the choosed states separated with comma, you may try something like this:
WHERE ....
And InStr("," & [Enter wanted states list] & ",", "," & [yourTable].[state field] & ",") > 0 And ...

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
I already have a form with all the statistic for the states. I want the user to be able to do it when running a report. What do you mean by having to create another form?

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top