Results 1 to 5 of 5
  1. #1
    BiotinX is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2020
    Posts
    7

    Sorting/Transposing in Access

    All -

    I'm having a hard time sorting data I am receiving from an online grading system. I've attached an xls of a small example of how I receive the data and how I need to sort the data. I would appreciate it if you had time to help out with this. I'm not sure if this sorting and transposing is best done with access or with a excel maro.

    Thanks!



    access sorting help.zip

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    this is not sorting, you are restructuring the table, BUT in access you can create something 'similar' with a CROSSTAB QUERY.
    In Excel, you can build a PIVOT TABLE.

    But neither will restructure in the method you showed. No data is shown that way.

  3. #3
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,614
    I'm having a hard time sorting data I am receiving from an online grading system. I've attached an xls of a small example of how I receive the data and how I need to sort the data. I would appreciate it if you had time to help out with this. I'm not sure if this sorting and transposing is best done with access or with a excel maro.
    There may be a better way but take a look at qry123 in the attached db.
    Attached Files Attached Files
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  4. #4
    BiotinX is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2020
    Posts
    7
    That helps a bunch. So you make a query for each question and then a query to I guess summarize the results? I guess I'll need to make two different databases, because some of our exams have 25 questions while others have 75 questions. I very much appreciate your time.

  5. #5
    Join Date
    Apr 2017
    Posts
    1,793
    And you want the query table with (6*75=450) + fields? To look at! Or even to print out!

    Read or link received data into Access database table designed specifically for this. Then update other Access database tables based on gotten data - I think you need tables like:
    tblStudents: StudentID, ForeName, LastName, ...;
    tblTests: TestID, ...;
    tblTestQuestions: TestQuestionID, TestID, QuestionText, QuestionAnswer, MaxPoints, ...;
    tblStudentTests: StudentTestID, StudentID, TestID, TestDate, ...;
    tblStudentTestAnswers: StudentTestAnswerID, StudentTestID, TestQuestionID, StudentAnswer, AwardedPoints.

    To look how specific student did test directly in app, have a single-type form based on tblStudents, where user can select a student, with unbound combo where user can select a test. The form will have an continuous subform linked with main form through StudentID and unbound combo. The subform displays row-wise all questions from test, and all info about student answers.

    To have a report printed out (or to look at), you create an Access report, grouped by students. Report is based on query, which returns info about test, student, test questions and student answers. When the report is called, the filter for query is set to limit returned data to specific test. Student info is displayed in group header, all questions and answers info is displayed row-wise in group body, and test totals for this student are displayed at group footer. When designing the report, you can place report fields in way to ensure best readability.

    Neither form with subform or report will have restrictions on number of questions in test. How many of them you have, so many you get.

    You can have other reports based on same data, like test totals report (a row of totals for every student who did the test),all tests results from specific student over some period, etc.

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

Similar Threads

  1. Transposing data in a report
    By Rudolf14 in forum Access
    Replies: 5
    Last Post: 09-06-2019, 06:09 AM
  2. Sort of transposing a table ????
    By ksor in forum Programming
    Replies: 3
    Last Post: 01-11-2018, 03:17 PM
  3. Replies: 2
    Last Post: 08-02-2017, 06:01 PM
  4. Transposing row to column in Access 2010
    By nshatz in forum Access
    Replies: 2
    Last Post: 06-02-2015, 10:38 AM
  5. Transposing Data
    By NoiCe in forum Queries
    Replies: 0
    Last Post: 11-09-2008, 05:24 PM

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