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

    Session Attendance Sheet

    Good day team,
    I'm a teacher not an IT person, but i like to do my work using MS Access


    my simple work is as follows:
    1- I'm teaching multiple grades for example ( Gr10, Gr11, Gr12)
    2- I'm teaching multiple subjects for example (Math, Physics, Chemistry)
    3- student can be assigned to only one grade, but can attend sessions for multiple subjects, for example Div in Gr11 but can attend Math and English sessions
    4- the attendance sheet should contain the fields, (Session_Date, Grade, Subject, Student_Name)

    these four fields need to be entered through a Data Entry Form.
    till here it seems fine to me, but i have the challenge which is:

    in this form, when i select the Grade, and subject, i need to see only the list of students who were registered for this grade and subject.
    I believe i missed the correct tables structures and its relationship, and i couldn't understand how to build this and if i need this auto number primary key in any of my tables? please advise

    the same was posted at the below link:
    https://www.codeproject.com/Questions/5283703/Creating-a-student-attendance-sheet-in-MS-access
    Last edited by Sickou; 10-28-2020 at 12:02 AM. Reason: to link the other site i posted the same

  2. #2
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,115
    Do not use lookup fields in tables, instead use combo boxes in your form and set their row source as queries that return only the students for the selected grade and subject. There are many examples in the forums, please post back if stuck, ideally with a sample of your db with just a few "dummy" records to show the problem.

    Cheers,
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  3. #3
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,977
    It would be helpful if you posted a screenshot of the relevant table relationships.
    Setting this up properly involves quite a complex table structure

    This is a many to many relationship - many students who can each be in many classes

    In order to filter students in a particular class, you should have at least 3 tables :
    1. tblStudents - StudentID, LastName, FirstName etc
    2. tblClasses - ClassID, Subject, Teacher etc
    3. tblStudentClasses - junction table including ClassID, StudentID etc

    Now use a query linking these tables to get a list of students for that class.
    You will also need to consider selecting the date and lesson for the selected class/teacher.
    For example, you can use a form like this (taken from the Help file for one of my commercial apps, School Data Analyser:

    Click image for larger version. 

Name:	Capture.PNG 
Views:	29 
Size:	45.0 KB 
ID:	43329

    To bring all these items together, I have additional tables such as tblSubjects, tblTeachers, tblTimetable... etc

    In case it helps, attached is a PDF help file showing how the lesson attendance feature is used in my app
    Hope that helps get you started
    Attached Files Attached Files
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  4. #4
    Join Date
    Apr 2017
    Posts
    1,680
    In addition to Colin's recommendations, this will get even more complex, when you are teaching more than a single year - with students in different grades in every year (or maybe not in some cases), and participating in different classes in different years - or having different classes for different parts of same year, etc.

  5. #5
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,977
    Hi Arvil
    Yes I agree.
    In my app there are also many other related tables used for this feature e.g. attendance mark type, school calendar dates (to match timetable against) etc etc...

    This is just one feature of many in my app which has a total of over 320 data tables in a SQL Server BE
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  6. #6
    orange's Avatar
    orange is online now Moderator
    Windows 10 Access 2016
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Further to the responses received so far, you may find this data model from Barry Williams' site helpful. There are other student/class related models on his site.

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

    Are you able to upload a zipped copy of the database with no confidential data?
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

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

Similar Threads

  1. Replies: 11
    Last Post: 07-13-2018, 04:43 PM
  2. Replies: 5
    Last Post: 04-25-2017, 01:38 AM
  3. mapi.session (emailing via CDO)
    By GraeagleBill in forum Programming
    Replies: 17
    Last Post: 10-05-2015, 05:01 PM
  4. Replies: 6
    Last Post: 01-16-2014, 12:41 PM
  5. Session variables
    By accessnewb in forum Programming
    Replies: 5
    Last Post: 08-04-2011, 11:45 PM

Tags for this Thread

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