Solved

Report subform add order by descending not working

Posted on 2008-10-27
4
277 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform) 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

734 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