Re: Filter by sum of counts
- From: "Dale Fye" <dale.fye@xxxxxxxxxx>
- Date: Thu, 6 Dec 2007 20:48:20 -0500
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
<runnik@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
.
- Follow-Ups:
- Re: Filter by sum of counts
- From: runnik
- Re: Filter by sum of counts
- 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
- Filter by sum of counts
- Prev by Date: Re: Duplicate date prompts when using Macro to run Crosstab Query
- Next by Date: Re: Exceptions in Query
- Previous by thread: Re: Filter by sum of counts
- Next by thread: Re: Filter by sum of counts
- Index(es):
Relevant Pages
|