Solved

Report subform add order by descending not working

Posted on 2008-10-27
4
267 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 - 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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Familiarize people with the process of utilizing SQL Server stored procedures 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 Micr…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

828 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