Solved

Open report with data sorted in ascending order

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

776 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