A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Coordinating the sort order in a report with the underlying query



 
 
Thread Tools Display Modes
  #1  
Old August 27th, 2009, 05:38 AM posted to microsoft.public.access.reports
Paul
external usenet poster
 
Posts: 68
Default Coordinating the sort order in a report with the underlying query

I've noticed that you can sort records on any field in a report by adding
that field to the Sorting and Grouping dialog box in Report Design View.
Does this override the sort order designated in an underlying query?

I'd like to follow best practices for designing a report, and so I'm
wondering if it's better to use the query to sort records, and just use the
Sorting and Grouping dialog to establish grouping levels.

I'd appreciate any suggestions in this regard.

Thanks in advance,

Paul


  #2  
Old August 27th, 2009, 08:00 AM posted to microsoft.public.access.reports
Allen Browne
external usenet poster
 
Posts: 11,706
Default Coordinating the sort order in a report with the underlying query

Yes: the Sortin'n'Grouping in the report defines its sort order. You may as
well just omit any sorting in its source query.

It is possible to programmatically set the ControlSource of the GroupLevel
when you open the report. This article explains how:
Sorting report records at runtime
at:
http://allenbrowne.com/ser-33.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.


"Paul" wrote in message
...
I've noticed that you can sort records on any field in a report by adding
that field to the Sorting and Grouping dialog box in Report Design View.
Does this override the sort order designated in an underlying query?

I'd like to follow best practices for designing a report, and so I'm
wondering if it's better to use the query to sort records, and just use
the Sorting and Grouping dialog to establish grouping levels.


  #3  
Old August 27th, 2009, 02:49 PM posted to microsoft.public.access.reports
Paul
external usenet poster
 
Posts: 68
Default Coordinating the sort order in a report with the underlying query

What a great way to give my users control over the sorting of a report.

Thanks (again), Allen.

Paul


"Allen Browne" wrote in message
...
Yes: the Sortin'n'Grouping in the report defines its sort order. You may
as well just omit any sorting in its source query.

It is possible to programmatically set the ControlSource of the GroupLevel
when you open the report. This article explains how:
Sorting report records at runtime
at:
http://allenbrowne.com/ser-33.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.


"Paul" wrote in message
...
I've noticed that you can sort records on any field in a report by adding
that field to the Sorting and Grouping dialog box in Report Design View.
Does this override the sort order designated in an underlying query?

I'd like to follow best practices for designing a report, and so I'm
wondering if it's better to use the query to sort records, and just use
the Sorting and Grouping dialog to establish grouping levels.




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:33 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.