Results 1 to 2 of 2
  1. #1
    mtella1 is offline Novice
    Windows 10 Access 2016
    Join Date
    Oct 2020
    Posts
    1

    How to generate report with multiple records and horizontally recuring field.


    Hi guys.
    I'm new in the forum. My problem is, I've a query with fields Student_ID(FK), Session_ID(FK), Term_ID(FK), Subject_ID(FK) and TotalMarks(Calculated) which I am using as the Record Source for my report. I want the report to display each record as Studentx, Subjecti-Score, Subjectj-Score, Subjectk-Score, ..., Subjectz-Score etc but each time I try I got stuck. I need help please. Thanks.

  2. #2
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,791
    If your records are properly formed (e.g. in rows and not columns) you will need to base your report on a crosstab query. The nature of a ct query is that the number of columns is based on some sort of grouping and a group can have a different count from one time to the next, hence the number of columns can change and the report will fail. To combat this, your query needs a static group. See this for example.

    If that doesn't help it's because "I got stuck" tells us - not much.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Generate Multiple Records at Once
    By macollins in forum Programming
    Replies: 3
    Last Post: 12-13-2013, 12:55 PM
  2. Generate Multiple Records with Autonumbers
    By macollins in forum Access
    Replies: 10
    Last Post: 12-09-2013, 03:11 PM
  3. Replies: 6
    Last Post: 03-27-2013, 05:45 PM
  4. Displaying multiple records horizontally
    By Juicejam in forum Forms
    Replies: 14
    Last Post: 01-19-2012, 03:05 AM
  5. Replies: 11
    Last Post: 10-04-2011, 02:29 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