Results 1 to 4 of 4
  1. #1
    mpaulbattle is offline Advanced Beginner
    Windows 7 32bit Access 2010 64bit
    Join Date
    Aug 2013
    Location
    Houston
    Posts
    50

    DCount Help

    I am trying to create a report that counts all practices based on the range of the survey score they have given us. For example,


    Score 8-10
    Score 5-7
    Score 1-4

    in the first text field for score 8-10 I am able to get it to work properly. I came up with =DCount("[Score]","QCS","[Score] >= 8")

    for the score range for 5-7 I have used =DCount("[Score]","QCS","[Score] >=5 And <8") but getting #Error.

    I am not sure if i am missing something like single quotes or extra parentheses or both.
    Can someone help me please?
    Thanks in Advance

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    You have to repeat the field:

    =DCount("[Score]","QCS","[Score] >=5 And [Score]<8")
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    mpaulbattle is offline Advanced Beginner
    Windows 7 32bit Access 2010 64bit
    Join Date
    Aug 2013
    Location
    Houston
    Posts
    50
    pbaldy...thanks that worked. Gotta find the resolve button now.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    Happy to help!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. DCount help
    By McArthurGDM in forum Programming
    Replies: 6
    Last Post: 06-15-2015, 04:30 PM
  2. DCount
    By Newbie11 in forum Reports
    Replies: 4
    Last Post: 08-03-2012, 12:23 AM
  3. DCount
    By Ray67 in forum Queries
    Replies: 2
    Last Post: 06-26-2012, 10:48 AM
  4. DCount
    By nsteenhaut in forum Queries
    Replies: 2
    Last Post: 10-04-2011, 05:00 PM
  5. DCount and If
    By Madmax in forum Access
    Replies: 3
    Last Post: 07-28-2011, 06: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