Results 1 to 3 of 3
  1. #1
    mcmcd99 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Nov 2016
    Posts
    65

    Counting a report column that doesnt have formatting

    So I'm trying to count up a column like this to get some data on how many of each type are in the records of the particular report. This doesn't seem to be giving me a total of only the records with the type of ARFF, but simply a count of all records on the report. How do I specify ARFF only?



    =Count([type]="ARFF")

  2. #2
    mcmcd99 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Nov 2016
    Posts
    65
    I've also tried:

    =Count( Iif(Not [type]="military",[type],Is Null) And Iif([type]="military",[type],"*") )
    and
    =Sum( Iif(Not [type]="military",[type],0) And Iif([type]="military",[type],"1") )

    but no luck. And the sum one is just returning a negative number.

  3. #3
    Join Date
    Apr 2017
    Posts
    1,681
    =DCount("type","YourTable","type = 'ARFF'")

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

Similar Threads

  1. Replies: 0
    Last Post: 06-13-2016, 06:15 PM
  2. Replies: 4
    Last Post: 05-10-2013, 01:22 PM
  3. Replies: 1
    Last Post: 03-12-2013, 01:20 AM
  4. Query runs fine but report doesnt work
    By endri81 in forum Queries
    Replies: 4
    Last Post: 04-28-2012, 02:35 PM
  5. Replies: 2
    Last Post: 12-05-2011, 04:53 AM

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