Re: Filter by sum of counts
- From: Dale Fye <dale.fye@xxxxxxxxxx>
- Date: Fri, 7 Dec 2007 09:44:01 -0800
Glad I could help
--
Don''t forget to rate the post if it was helpful!
email address is invalid
Please reply to newsgroup only.
"runnik@xxxxxxxxx" wrote:
I had no clue you could define parameters using the popup menu. I.
don't think I ever learned that in any class I ever took. But that
appears to have worked for me. Thanks for your help.
Jason
On Dec 6, 8:48 pm, "Dale Fye" <dale....@xxxxxxxxxx> wrote:
Doesn't matter.
Your third query (in SQL view) should look something like:
PARAMETERS [Enter a starting date] DateTime;
SELECT * FROM qry2;
If you have more than one parameter, just separate them by commas. Do you
know how to define parameters in the query grid?
If not,
1. open the query in design mode.
2. right click in the grey area next to the box that displays qry2 and the
fields that are in it
3. Select Parameters from the popup menu
4. In the Parameter column, enter your parameter, exactly the way it used
in your query. In your case, it will look like:
[Enter a starting date]
5. In the DataType column, enter Date/Time
HTH
Dale
<run...@xxxxxxxxx> wrote in message
news:6137c090-5d3d-4590-9499-a597c4b95dd6@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I would, but the third query doesn't have the date field available to
it, since it's not a displayed field in the other two queries.
Jason
On Dec 6, 4:17 pm, Dale Fye <dale....@xxxxxxxxxx> wrote:
Add the same parameters clause that you have in the other query to the
beginning of the 3rd query.
HTH
Dale
--
Don''t forget to rate the post if it was helpful!
email address is invalid
Please reply to newsgroup only.
"run...@xxxxxxxxx" wrote:
That's OK. Yes, his solution worked for me, but now I have another
question/problem. In my underlying table, I have a date field. I
figured out that by putting a parameter asking for a starting date and
ending date into the first two queries, that I can limit my results to
just the dates that are inputted by the user. However, when I try to
create a chart based on the third query, it states that the Microsoft
Jet database engine does not recognize '[Enter a starting date]' as a
valid field name or expression. I know this is because the third query
does not contain the parameter input, but I don't know how to get
around that. Any suggestions?
Jason
On Dec 6, 10:50 am, Dale Fye <dale....@xxxxxxxxxx> wrote:
I misinterpretted what you were looking for. The way I read your OP,
I had
the impression that you only wanted those vendors that had at least 5
records
(Options A, B, C, D, E, F, ...) in your query, not where the sum of
the
number in the right had column totaled 5 or more. I see that Johns
three
query solution worked for you.
Good Luck
- References:
- Filter by sum of counts
- From: runnik
- RE: Filter by sum of counts
- From: Dale Fye
- Re: Filter by sum of counts
- From: runnik
- Re: Filter by sum of counts
- From: Dale Fye
- Re: Filter by sum of counts
- From: runnik
- Re: Filter by sum of counts
- From: runnik
- Re: Filter by sum of counts
- From: Dale Fye
- Re: Filter by sum of counts
- From: runnik
- Filter by sum of counts
- Prev by Date: Re: Criteria Problem
- Next by Date: Re: Weekend and holiday dates only
- Previous by thread: Re: Filter by sum of counts
- Next by thread: Re: Filter by sum of counts
- Index(es):
Relevant Pages
|