Results 1 to 2 of 2
  1. #1
    travismd is offline Novice
    Windows 7 Access 2007
    Join Date
    Nov 2009
    Posts
    1

    Unhappy Grouped Report Missing Data

    Help! I'm about to give up on Access altogether-- my reports are missing records in a pretty unpredictable fashion. Here's what's going on



    Access 2007

    I have a report that is grouping by Class and listing Students for each class. I'm using the Group & Sort feature to Group on ClassID. The ClassID Header lists the ClassName and the Detail of the report is listing each individual student.

    I have classes for each day of the week, but when I run the report it is clearly missing all Friday classes (there are 3.) They are just on there. I load up the Record Source and view in Datasheet view and the Friday classes are listed there. To further test, I use a criteria in SQL Design View to only show Friday classes, and when I rerun the report it shows the Friday classes. What? However, that doesn't even work properly. It only lists one student for the last class on the page, even though there are definetely more than one student in that class.

    I also changed the 'keep whole group together'/'do not keep together' settings in the Group & Sort box. Sometimes it will remove the entire last Friday class altogether. Why doesn't it make the second page of the report ton include the rest of the data? I have not checked the other classes to see if people are missing, but now I'm nervous that my reports are randomly missing data.

    Here's the Record Source query:
    SELECT Classes.Day, Classes.ClassTimeBegin, [LastName] & ", " & [FirstName] AS LastFirst, Student_Class.Student_ClassID, Student_Class.ClassID, Classes.ClassName, Student_Class.StudentID
    FROM Students INNER JOIN (Classes INNER JOIN Student_Class ON Classes.ClassID = Student_Class.ClassID) ON Students.StudentID = Student_Class.StudentID
    ORDER BY [LastName] & ", " & [FirstName];

    I don't think there's anything wrong with the query (as the Datasheet view shows all the data)- it appears to be problems with grouping and pagination. Any help or insight would be greatly appreciated.

  2. #2
    SoftwareMatters is offline Access VBA Developers
    Windows XP Access 2003
    Join Date
    Mar 2009
    Location
    Dorset
    Posts
    274
    I would go back to basics with this. So, create a new report based on the query with no grouping or anything and then add it so you can see what's happening as you go.
    Good luck

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Grouped Tables
    By tmcrouse in forum Queries
    Replies: 0
    Last Post: 09-24-2009, 07:10 AM
  2. Replies: 0
    Last Post: 08-01-2009, 12:43 PM
  3. Shape of data on report
    By stvgarner in forum Reports
    Replies: 0
    Last Post: 06-15-2009, 01:28 PM
  4. Grouping data in Report
    By Leelers in forum Reports
    Replies: 1
    Last Post: 02-20-2009, 08:49 AM
  5. Report SQL/Data in Access
    By artfuldodger in forum Access
    Replies: 2
    Last Post: 09-01-2006, 07:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums