Results 1 to 5 of 5
  1. #1
    turbosdad is offline Novice
    Windows 7 Access 2007
    Join Date
    Aug 2010
    Posts
    3

    Total of column with check boxes


    I need to get a total of Active members that have a check mark in them, in one column
    the total function shows all records, and the total in the records area will not show in reports

  2. #2
    Join Date
    May 2010
    Posts
    339
    The SQL might look like this:

    Code:
    SELECT Abs(Sum([Yes/no field])) AS SumField
    FROM YourTable;

  3. #3
    turbosdad is offline Novice
    Windows 7 Access 2007
    Join Date
    Aug 2010
    Posts
    3
    I have some experence creating querys without expressions
    do I put this expression in the query under the field i want to count?
    how do I convert it from sql
    do I need to creat a new field (expr1)

    the field I want to count is named 'Active'

    sorry to be such a newbie at this

    this is the sql for the query, where do i place the new code?

    SELECT [Membership Data].[National membership status active], [Membership Data].[Membership Record Number], [Membership Data].LastName, [Membership Data].FirstName
    FROM [Membership Data]
    WHERE ((([Membership Data].[National membership status active])=True) AND (([Membership Data].[Membership Record Number])<8000));

    thanks for any help
    Last edited by turbosdad; 08-06-2010 at 12:07 AM. Reason: added code

  4. #4
    maximus's Avatar
    maximus is offline Expert
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Aug 2009
    Location
    India
    Posts
    931
    I assume that u want to show the total No of Active members in the column of a query

    well using DCount can be another option:
    Create a calculative Field like Expr1 with this expression:

    DCount("[MemberID]","tblMember","[ActiveMember]=True")

  5. #5
    turbosdad is offline Novice
    Windows 7 Access 2007
    Join Date
    Aug 2010
    Posts
    3
    I wish to us the total in a report

    when I get this query working I can modify it for use in other ( yes/No) fields

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

Similar Threads

  1. To check or Un-Check all Boxes in a form
    By devcon in forum Forms
    Replies: 7
    Last Post: 05-01-2010, 12:03 AM
  2. Un-Check all Boxes
    By cotri in forum Forms
    Replies: 4
    Last Post: 04-30-2010, 12:53 PM
  3. Replies: 7
    Last Post: 04-27-2010, 02:47 PM
  4. List box column check..
    By empyrean in forum Programming
    Replies: 1
    Last Post: 10-28-2009, 08:18 AM
  5. check boxes
    By chiefmsb in forum Forms
    Replies: 1
    Last Post: 11-14-2006, 02:22 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