Solved

Open report with data sorted in ascending order

Posted on 2014-03-21
4
1,623 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
[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: 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
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 …

690 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