Re: how do I display data related to a top 10 query in access?



crimminsky wrote:
> Hello, I am trying to run a query on a table that returns the top 10
> of a field. i.e
> The table contains 3 columns, meal type(meat,veg,fruit,cereal). male
> or female. meal contents
> (pork,lamb,chicken,potatoes,carrots,bananas,apples,weetabix,cornflakes
> etc)
>
> I can run the query so that it puts the top ten meal types in
> descending order and show me the count and whether it was a male or
> female that chose it. ie:- Meat,23,male. when i add
> the meal contents to the query, It sorts it in to top ten for the
> contents. I don't want that to happen. I want to be able to
> display on a report what each of those 23 meats were ie 10
> pork,10,lamb,3,chicken. Any ideas?

My understanding is that the "top" in a TOP query is determined by the fields
you sort on. If you add additional fields, just don't sort on them and they
shouldn't affect the rows returned.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com


.



Relevant Pages

  • Re: Make Table Query - Sorting Errors
    ... Dim OutputTable As DAO.Recordset ... The query to concatenate the CAMPNO values will need to be LOOKING at the ... If you post the query you are using to do this, I beleive we can get it to ... Is there a command that I can use in the module code to first sort the ...
    (microsoft.public.access.queries)
  • Re: Make Table Query - Sorting Errors
    ... You sort in a query, ... You can do a compound sort in a query. ... "Tom Ellison" wrote: ... resulting table only has one record for each value of "CAMPNO". ...
    (microsoft.public.access.queries)
  • Re: Query doesnt always sort
    ... You have to use a query to sort the data in to your required order and then ... Access MVP 2002-2005, 2007 ... University of Maryland Baltimore County ... How do I impose a sort on the datasheet view? ...
    (microsoft.public.access.queries)
  • Re: Make Table Query - Sorting Errors
    ... sorted, it will sort them as they arrive. ... you query them, why is this of any concern to you? ... correctly on the field CAMPNO. ... "Duane Hookom" wrote: ...
    (microsoft.public.access.queries)
  • Re: Make Table Query - Sorting Errors
    ... MS Access MVP ... resulting table only has one record for each value of "CAMPNO". ... Is there a command that I can use in the module code to first sort the ... I have a make table query that is supposed to sort in ascending order ...
    (microsoft.public.access.queries)