Results 1 to 3 of 3
  1. #1
    giol is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Posts
    10

    Use checkbox to fill grades

    Hi, i am working on a database that will allow me and my colleagues to manage our student's grades
    I have created all the basic tables that include student and teacher data. I also created a table with the subjects (yes/no type) that are being graded and the weight of each subject (basically how many points to add to the final grade if the subject checkbox is checked)


    I have created a form (frmgradebook) where after selecting from dropdown lists the student data, date, lesson, etc, i have a list of the subjects to be graded with checkboxes next to them. I want to calculate the total grade by multiplying the value of the checkbox with the weight of the subject associated with the checkbox's subject. The only way i can do it so far is to build and expression that multiplies each checkbox value with the corresponding weight and sums it. The problem with this is that if another teacher wants to change the weight of a subject he will need to change the expression and that is not very friendly.
    How can i build an expression that multiplies the checkbox value (-1 or 0) with the weight value that is recorded in a table with all the subjects?
    Thank you.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    No , you wouldnt change the expression...the query would have a calculated field...your checkbox here I called [ToBGraded]:

    sum(abs([ToBGraded]) * [Weight]) as WtVal

  3. #3
    giol is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Posts
    10
    I am not sure i understand it. Please explain where to add the calculated field on the following example.
    Lets say i have two subjects to be graded for the lesson.
    Subject1 with a weight of 5
    Subject2 with a weight of 10
    So i have a tbl with two columns (tblSubjects) : subject name | weight
    and the form(frmGrade) with the following
    subject1 [] (checkbox)
    subject2 [] (checkbox)
    final grade ____
    If both check boxes are true the final grade should be 15.

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

Similar Threads

  1. Student Grades
    By BDevil15 in forum Access
    Replies: 4
    Last Post: 12-09-2013, 01:53 AM
  2. Replies: 4
    Last Post: 09-18-2012, 05:07 AM
  3. Join Query for Student Grades Database
    By usmcgrunt in forum Queries
    Replies: 2
    Last Post: 04-15-2011, 07:37 PM
  4. Replies: 2
    Last Post: 08-03-2010, 02:47 PM
  5. Replies: 1
    Last Post: 10-23-2006, 03:45 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