Results 1 to 2 of 2
  1. #1
    New Lounger
    Join Date
    Mar 2001
    Location
    UK
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    summing fields (Access2000)

    I sure there is a very simple way to do this but please help.
    I have a VERY simple database which has fields for showing how many lessons a strudent attends each week. It has a yes/no field for each day (i.e mon through sat). All I need to do is add up how many lessons each student attends each week and show the total in a form and report. Simple in excel but my mind is blank in access.
    Please help.

  2. #2
    Gold Lounger
    Join Date
    Jun 2001
    Location
    Crystal Beach, FL, Florida, USA
    Posts
    3,436
    Thanks
    1
    Thanked 34 Times in 34 Posts

    Re: summing fields (Access2000)

    In a Yes/No field, Yes is stored as -1 (True), and No is stored as 0 (False). So you can total the fields to find the result, something like this:

    Total = ABS( chkMon + chkTues + .... + chkFri)
    Mark Liquorman
    See my website for Tips & Downloads and for my Liquorman Utilities.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •