|
|
Group Items on Report but do Not Sort the Group alphabetically
I have a table called "category" with a list of dropdown items in it. The
table only has an autonumber key and the list of items in it. The items are
listed in a specific order in the table and are not sorted alphbetically in
the table nor in the query for the table. The items are listed in the table
as a dropdown in this order and the query also shows the items in this order:
Administration
Human Resources
Events
Periodicals
I want to group the data in my report based on the "category" listing as
shown in both the table and the query. However, as soon as "group" the items
in the report, the items show up on my report as sorted "alphabetically" in
the following order (notice that Events has now swapped places with Human
Resources) :
Administration
Events
Human Resources
Periodicals
I want the groups in the report to show up in the exact same order as they
are shown in the table. I have gone into the sorting/grouping controls and
can't change what appears to be an alphabetical sort default in the
"grouping" category. What do I do??
|
|
0
|
|
|
|
Reply
|
Utf
|
3/19/2008 11:08:00 PM |
|
How does the dropdown get an order for those records? Do you have a sorting
field in the combo box's RowSource query? If you don't, then you're not
ensuring that the order won't change in the combo box, let alone in the
report.
You will need to include some type of sorting field, where the sorting field
contains a unique value (perhaps the autonumber field could serve that
purpose?), and then use that sorting field in the report as the Grouping
field.
--
Ken Snell
<MS ACCESS MVP>
"Need Help with Roses" <Need Help with Roses@discussions.microsoft.com>
wrote in message news:892D895B-36E8-4E1F-B648-5469D981B9F3@microsoft.com...
>I have a table called "category" with a list of dropdown items in it. The
> table only has an autonumber key and the list of items in it. The items
> are
> listed in a specific order in the table and are not sorted alphbetically
> in
> the table nor in the query for the table. The items are listed in the
> table
> as a dropdown in this order and the query also shows the items in this
> order:
> Administration
> Human Resources
> Events
> Periodicals
>
> I want to group the data in my report based on the "category" listing as
> shown in both the table and the query. However, as soon as "group" the
> items
> in the report, the items show up on my report as sorted "alphabetically"
> in
> the following order (notice that Events has now swapped places with Human
> Resources) :
> Administration
> Events
> Human Resources
> Periodicals
>
> I want the groups in the report to show up in the exact same order as they
> are shown in the table. I have gone into the sorting/grouping controls and
> can't change what appears to be an alphabetical sort default in the
> "grouping" category. What do I do??
|
|
0
|
|
|
|
Reply
|
Ken
|
3/19/2008 11:27:12 PM
|
|
Easiest: Group by the Autonumber - if it has the order you require, Choose a
Header/Footer if you wish and slide the Category field into that Header.
Better: create a number field which puts the items in the order you require,
that way you can change the order at a later date or insert new items into
the list.
Just make sure that if new Categories are added, a unique number is also
added, otherwise the categories without or with the same number will simply
group together and no warning will be given.
I did find, when I did this, that I could not make the number unique in
Table design view because then it became more complex to renumber the items
if I wanted to change the order so I either had to run some code to renumber
the items or else have code in my form which didn't allow a user to close
the form until they had no duplicate numbers but this may not be an issue
for you.
Evi
"Need Help with Roses" <Need Help with Roses@discussions.microsoft.com>
wrote in message news:892D895B-36E8-4E1F-B648-5469D981B9F3@microsoft.com...
> I have a table called "category" with a list of dropdown items in it. The
> table only has an autonumber key and the list of items in it. The items
are
> listed in a specific order in the table and are not sorted alphbetically
in
> the table nor in the query for the table. The items are listed in the
table
> as a dropdown in this order and the query also shows the items in this
order:
> Administration
> Human Resources
> Events
> Periodicals
>
> I want to group the data in my report based on the "category" listing as
> shown in both the table and the query. However, as soon as "group" the
items
> in the report, the items show up on my report as sorted "alphabetically"
in
> the following order (notice that Events has now swapped places with Human
> Resources) :
> Administration
> Events
> Human Resources
> Periodicals
>
> I want the groups in the report to show up in the exact same order as they
> are shown in the table. I have gone into the sorting/grouping controls and
> can't change what appears to be an alphabetical sort default in the
> "grouping" category. What do I do??
|
|
0
|
|
|
|
Reply
|
Evi
|
3/21/2008 1:23:03 PM
|
|
|
2 Replies
515 Views
(page loaded in 0.146 seconds)
Similiar Articles: Group Items on Report but do Not Sort the Group alphabetically ...I have a table called "category" with a list of dropdown items in it. The table only has an autonumber key and the list of items in it. The items are... custom sort in report grouping - microsoft.public.access.reports ...Group Items on Report but do Not Sort the Group alphabetically ... How do I put this into a report. First, I cannot find how to make a group footer which I suppose is ... only one group per page - microsoft.public.access.reports ...How do you force the report to make a new page ? I need to group items , but only one type per ... only one type in a page Group the report by Item (in the report Sorting ... Sort parameter list from Report Model - microsoft.public.sqlserver ...Group Items on Report but do Not Sort the Group alphabetically ... How to alphabetically sort a data source - microsoft.public.mac ... Sort parameter list from Report ... sorting report same as form access 2007 - microsoft.public.access ...I am sorting a report the same as a form (both have the same records) On opening of the report: With Forms("MyForm") If .OrderByOn Then ... Sorting and grouping data with varying number or rows - microsoft ...Group Items on Report but do Not Sort the Group alphabetically ... Better: create a number field which puts the items in ... and SSRS) You do not typically need to sort ... Sorting Combo box items - microsoft.public.access.forms ...Group Items on Report but do Not Sort the Group alphabetically ... Do you have a sorting field in the combo box's RowSource query? If you don't, then you ... excel.misc ... Report does not sort by date - microsoft.public.access ...Group Items on Report but do Not Sort the Group alphabetically ... Group Items on Report but do Not Sort the Group ... default sort order. If a form or report do not have ... sort by letter not in ascending or descending - microsoft.public ...I would like to do a print report where sort of group of F (faculty) will be first , second group is ... Custom menu items "greyed out" - disabled - microsoft ... I have a ... group data in wksht columns for sorting purposes. - microsoft ...Group Items on Report but do Not Sort the Group alphabetically ... group data in wksht columns for sorting purposes. - microsoft ... I want to sort on 7. 2nd, I would like ... Group Items on Report but do Not Sort the Group alphabetically ...DataBase - Group Items on Report but do Not Sort the Group alphabetically Group Items on Report but do Not Sort the Group alphabetically ...I have a table called "category" with a list of dropdown items in it. The table only has an autonumber key and the list of items in it. The items are... Create a grouped or summary report - Access - Office.com... to sort the records alphabetically by company name. For many reports, sorting ... Both the report and the query sort products by ... Do not keep group together on one ... Troubleshoot sorting - Access - Office.com... of a group level, and then click Group ... will be displayed in default sort order. If a form or report do not have ... You can sort data alphabetically, numerically, or by date. Filter, Group, and Sort Data (Report Builder and SSRS)You do not typically need to sort data for ... the child group values, or the detail rows), what to sort by, and whether to apply the sort expression to other report items ... 7/27/2012 1:31:44 AM
|
|
|
|
|
|
|
|
|