Solved

Report subform add order by descending not working

Posted on 2008-10-27
4
260 Views
Last Modified: 2008-10-27
I have a report that has a subreport.

Everything was fine until they wanted to change the sort order of the information in the subreport.

They wanted to have TR_CODE to sort in descending order. The TR_CODE can have CM, DM or " " in it.

I have tried the following and nothing seems to help - the table that feeds the subreport is [tempstatement detail] - I have gone back and forth on these two approaches.

1) I changed the record source to the following:
Select * from [tempstatement detail] order by tr_code desc;
No change here.

2) I created a query that the TR_Code was in descending order, when I ran the query it looked fine. Change the record source for the subreport to the query and no change

Can anyone help me with this ?
0
Comment
Question by:proffittware
  • 2
  • 2
4 Comments
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Access MVP) earned 500 total points
ID: 22817330
Remove in sorting from the query, and use the Grouping and Sorting dialog in the sub report to specify the sorting.

mx
0
 

Author Comment

by:proffittware
ID: 22817422
I will try and get back
0
 

Author Comment

by:proffittware
ID: 22817449
That did it.  Thanks...
0
 
LVL 75
ID: 22817566
You're welcome as always.

Also note that ... anytime you do have anything specified in the Grouping and Sorting dialog ... Access ignores *any* sorting in the underlying query - which is then just a performance drain - since the query still sorts anyway - but the report only goes by what is in the G/S dialog.

mx
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question