Results 1 to 3 of 3
  1. #1
    Duncan is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Oct 2010
    Posts
    71

    Specific record counting in Reports

    In the past I have used =Count(*) in a txtbox in the report footer to count all the records. Now I want to only count records that have the value of N in a field or if a check box is checked.


    E.g.,
    Table name: tblclients
    Field name: txtpresent
    Data in filed either: N or C and I only want to count the N

    I’m currently playing with =count([tblclients.txtpresent].[value] = N) to no success

    Alternatively I have a check box field in the report I could count
    Any help would be most welcome

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    If you want to count the form's RecordSet, try:

    =Count(IIf([txtpresent]="N",1,Null))

    Counting on the table would require DCount.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Duncan is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Oct 2010
    Posts
    71
    Excellent worked first time and I wound of never got that. May thanks June7.

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

Similar Threads

  1. Replies: 12
    Last Post: 08-21-2012, 02:40 PM
  2. Counting fields in a single record
    By Racingrl in forum Queries
    Replies: 2
    Last Post: 06-11-2012, 10:52 AM
  3. counting ticks in reports
    By rumplstilskin in forum Reports
    Replies: 2
    Last Post: 05-03-2012, 10:23 AM
  4. Open Specific Record
    By halfaguava in forum Forms
    Replies: 1
    Last Post: 06-09-2011, 04:08 PM
  5. specific record
    By thewabit in forum Access
    Replies: 8
    Last Post: 02-17-2010, 11:32 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