Solved

Open report with data sorted in ascending order

Posted on 2014-03-21
4
1,448 Views
Last Modified: 2014-03-21
In my database as attached, I have a report

subrptqryQtyTypes       based on       qryQtyTypes

which I want to open with records in an ascending order of  "VinTypeID" . I dont get it do open in ascending order.

Will you please have a look if you can fix it and/or tell me how.
ProblemReport.accdb
0
Comment
Question by:Fritz Paul
  • 2
  • 2
4 Comments
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Access MVP) earned 500 total points
ID: 39946437
Here's the deal:
In a Report, if you have *any* Grouping/Sorting configured (and you do), Access ignores *any* sorting in the underlying query for the Report.

Your query has sorting ... and is being ignored.

You must do the sorting via the Group/Sorting Dialog.

mx
0
 

Author Closing Comment

by:Fritz Paul
ID: 39946451
Thanks, I hope I'll remember that for ever!
0
 
LVL 75
ID: 39946469
It's not obvious ... until you know about it ... and now you do :-)

Note that worse ... JET still does the sorting in the query - wasting time :-(
I notice you are Grouping by several fields in the query. You might want to rethink that also ... and do it in the report, which may likely be more efficient ....

mx
0
 

Author Comment

by:Fritz Paul
ID: 39946497
THANKS!
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

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 retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
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…

744 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

10 Experts available now in Live!

Get 1:1 Help Now