Solved

Open report with data sorted in ascending order

Posted on 2014-03-21
4
1,528 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 - Microsoft MVP, Access and Data Platform) 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

Back Up Your Microsoft Windows Server®

Back up 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.

Question has a verified solution.

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

Suggested Solutions

Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
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 different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

809 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