Solved

Report subform add order by descending not working

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
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…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.

759 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now