Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple Date Sorting Question, I think!

Status
Not open for further replies.

Lanie

Programmer
Jan 20, 2000
83
US
I've set up a report which subtotals by month and list each Sales Order by date. In the grouping I've got Date Received, Ascending order and Grouper Header and Footer set to yes, with Group on Month. <br>
<br>
I am getting the correct subtotals and totals, but the dates are not in ascending order. I have the query set to ascending on the Date Received, but to no availe....<br>
<br>
What am I doing wrong here? <br>
Thanks for your help as always you all are extremely knowledgable to my great relief.. <p>Lanie<br><a href=mailto:etroidl@conaxfl.com>etroidl@conaxfl.com</a><br><a href= > </a><br>
 
The report for some reason does not care about sorting from the query. I have had similar problems. You have to re-apply sorting in your report.<br>
<br>
Click on the header and details sections in your report and make sure you have sorted Descending if you want the most recent date on top.<br>
<br>

 
I tried that, but it didn't work. I am still getting it grouped by month, but not sorted by date....<br>
<br>
Any other suggestions? <p>Lanie<br><a href=mailto:etroidl@conaxfl.com>etroidl@conaxfl.com</a><br><a href= > </a><br>
 
If the date is not the only column sorted or it is not the left most column it will sort on the left most first.<br>
You can tell by looking at the other columns.<br>
<br>

 
After the sort by DATE in descending order add another sorting line that has daynumber(date) and sort in ascending order.<br>
<br>
This should cure the problem.
 
Thank you for your suggestion to add another sort line...this worked like a charm. Hope I can be of future assistance to both of you in the future.... <p>Lanie<br><a href=mailto:etroidl@conaxfl.com>etroidl@conaxfl.com</a><br><a href= > </a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top