Page 2 of 2 FirstFirst 12
Results 16 to 28 of 28
  1. #16
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,566

    Hi you need to upload your full database that contains the Student table and all related tables.
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

  2. #17
    sps is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Jul 2023
    Posts
    12
    Quote Originally Posted by mike60smart View Post
    Hi you need to upload your full database that contains the Student table and all related tables.
    file is attached there are only two tables
    students
    exam
    Attached Files Attached Files

  3. #18
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,566
    Hi

    You have not set any relationships between the 2 tables.

    A Student can take 1 or More Exams.

    Students table has an Autonumber PK named "ID" this should be changed to be "StudentID"

    Your Related table should contain a FK named StudentID so that you can link the 2 Tables and Enforce Referential Integrity.

    You are then able to create your Crosstab Query.
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

  4. #19
    sps is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Jul 2023
    Posts
    12
    Quote Originally Posted by mike60smart View Post
    Hi

    You have not set any relationships between the 2 tables.

    A Student can take 1 or More Exams.

    Students table has an Autonumber PK named "ID" this should be changed to be "StudentID"

    Your Related table should contain a FK named StudentID so that you can link the 2 Tables and Enforce Referential Integrity.

    You are then able to create your Crosstab Query.
    I did add the fields/rename and make a relation 1 to many, please check the attachment and let me know if this step is ok
    Attached Files Attached Files

  5. #20
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,566
    Hi

    OK In the attached I have added a Query named "qryStudentsExams"

    This produces the data in a Crosstab

    What you now need to do is create a Report based on the query that would display for Each Student their Exam Results
    Attached Files Attached Files
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

  6. #21
    sps is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Jul 2023
    Posts
    12
    Thanks
    is it possible to get require result in access form (one student per form) or we must create report for that???

  7. #22
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,566
    Well it all depends on what you want Access to do for you.

    You can create a Form based on your query.

    You can set Criteria in the query that allows you to filter for a specific Student.

    You can then add a Command button to the Form that allows you to generate a Report based on
    the current Record shown on the Form.
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

  8. #23
    sps is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Jul 2023
    Posts
    12
    Quote Originally Posted by mike60smart View Post
    Well it all depends on what you want Access to do for you.

    You can create a Form based on your query.

    You can set Criteria in the query that allows you to filter for a specific Student.

    You can then add a Command button to the Form that allows you to generate a Report based on
    the current Record shown on the Form.
    Basically I want to print each student card separately like attached. if there are 1000 student I want to print them with one print command . How do I figure out
    Attached Thumbnails Attached Thumbnails r card.jpg  

  9. #24
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,566
    My original post told you how to do this.

    Carry out the steps indicated and then upload what you have done.
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

  10. #25
    sps is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Jul 2023
    Posts
    12
    in your first post there is crosstab query plz help further

  11. #26
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,566
    Hi
    See rptStudentsExams in the attached
    Attached Files Attached Files
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

  12. #27
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,940
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  13. #28
    sps is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Jul 2023
    Posts
    12
    Quote Originally Posted by mike60smart View Post
    Hi
    See rptStudentsExams in the attached
    dear bro its not what I required

    is it possible to get each student result in separate form page so I can print each student separately
    there should b less or more assessments.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 01-12-2017, 10:35 AM
  2. Replies: 1
    Last Post: 06-03-2016, 08:23 PM
  3. Replies: 4
    Last Post: 11-10-2014, 09:47 AM
  4. Replies: 7
    Last Post: 07-07-2013, 11:11 AM
  5. Replies: 1
    Last Post: 07-01-2013, 09:46 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