Solved

SubReports - data is not sorting on the report (but the query that is its source is sorting in the right order.....)

Posted on 2011-03-07
2
333 Views
Last Modified: 2012-05-11
Hi EE,

My assignment is to print a student's progress report (like a report card).
The parent report has fixed fields of student profile info in the header section.
To "imitate" a 2 column report,  the detail section consists of 2 subreports.

SubReport1 is column 1 - shows fall      semesters by filtering for ColumnCode = 1
SubReport2 is column 2 - shows spring  semesters by filtering for ColumnCode =  2

The parent report's query is a DISTINCT on the fixed fields from TBL_Transcript.
The sub report's query is a does not have a condition in the query for the column code, instead am doing the filter on the column code in the report level.

  (Really would like to pass the column code to the query, but i do not know how...
   usually i hard code the record source with sql and know how to code sql, but would like to learn how to control
    canned queries w/o writing sql.... but i digress)

The problem is, that the query IS SORTING CORRECTLY IN START DATE sequence,
     but it's not displaying that way on the report....

uploaded mdb below....
tx for your ideas and advice, sandra    
2011-03-07-EE-ARG-14-Transcript-.zip
0
Comment
Question by:mytfein
2 Comments
 
LVL 57

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 500 total points
ID: 35059237
<<The problem is, that the query IS SORTING CORRECTLY IN START DATE sequence,
     but it's not displaying that way on the report....>>

  Reports ignore any sorting in the underlying query because the report needs to know how things are ordered in order to do its job.

  Set the sort in the reports sorting and grouping properties and you'll be set.

JimD.
0
 

Author Comment

by:mytfein
ID: 35059340
Hi JIm,

that was it.... tx so much, s
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
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.
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 …

707 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

12 Experts available now in Live!

Get 1:1 Help Now