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  

Sub-report sorting problem



 
 
Thread Tools Display Modes
  #1  
Old April 2nd, 2010, 11:25 AM posted to microsoft.public.access.reports
[email protected]
external usenet poster
 
Posts: 60
Default Sub-report sorting problem

Hi
I created a sub-report to include some notes from a notes table into
my League report

It uses the following:

SELECT DISTINCTROW tblnotes.ID, tblnotes.Yearfld, tblnotes.Notefld
FROM tblnotes ORDER BY tblnotes.ID;

However, when I do a preview of the report, it is not sorting by ID
For example, the last two notes (items 31 and 32 from tblnotes) come
out in the order 32, 31 !!

This is quite important, as line 31 states 'National League 3 notes'
and 32 states notes on teams

What might be wrong?

Thanks
Neil
  #2  
Old April 2nd, 2010, 01:10 PM posted to microsoft.public.access.reports
Allen Browne
external usenet poster
 
Posts: 11,706
Default Sub-report sorting problem

Open the subreport in design view, and use the sorting and grouping pane to
specify the sort order.

--
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.


" wrote in message
...
Hi
I created a sub-report to include some notes from a notes table into
my League report

It uses the following:

SELECT DISTINCTROW tblnotes.ID, tblnotes.Yearfld, tblnotes.Notefld
FROM tblnotes ORDER BY tblnotes.ID;

However, when I do a preview of the report, it is not sorting by ID
For example, the last two notes (items 31 and 32 from tblnotes) come
out in the order 32, 31 !!

This is quite important, as line 31 states 'National League 3 notes'
and 32 states notes on teams

What might be wrong?

Thanks
Neil


  #3  
Old April 2nd, 2010, 05:45 PM posted to microsoft.public.access.reports
[email protected]
external usenet poster
 
Posts: 60
Default Sub-report sorting problem

On 2 Apr, 13:10, "Allen Browne" wrote:
Open the subreport in design view, and use the sorting and grouping pane to
specify the sort order.

--
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.

" wrote in message

...



Hi
I created a sub-report to include some notes from a notes table into
my League report


It uses the following:


SELECT DISTINCTROW tblnotes.ID, tblnotes.Yearfld, tblnotes.Notefld
FROM tblnotes ORDER BY tblnotes.ID;


However, when I do a preview of the report, it is not sorting by ID
For example, the last two notes (items 31 and 32 from tblnotes) come
out in the order 32, 31 !!


This is quite important, as line 31 states 'National League 3 notes'
and 32 states notes on teams


What might be wrong?


Thanks
Neil- Hide quoted text -


- Show quoted text -


Thanks - now why did I not spot something so obvious!

Neil
 




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 08:08 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.