Results 1 to 3 of 3
  1. #1
    baum12 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Apr 2011
    Posts
    10

    Count on a drop down box

    I need a count - I have a drop down box titled Status with 2 items in it. Funded and Pending. I need a total on my report of each. For example:

    Funded Awards = 7
    Pending Awards = 6



    I was attempting to put a count in the page footer of report, something like this:

    =Count([Grant Query]![Status]="Funded")

    Not working for me though, any help would be appreciated.

  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,640
    Try

    =Sum(IIf([Status]="Funded", 1, 0))
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    PB's advice is almost always right on, but I'm confused in that you post the drop down box and I think PB is summing data in the detail of the report.

    if you are counting something that is not in the record source of the report - then what you want to do is go into VBA and in help there take a look at DCount method - it will show you the syntax to use...... give that a try.

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

Similar Threads

  1. Help? Complicated Drop-Down
    By Pick9811 in forum Access
    Replies: 7
    Last Post: 06-19-2010, 01:35 PM
  2. Drop down option?
    By kwy in forum Database Design
    Replies: 1
    Last Post: 06-02-2010, 12:13 PM
  3. drop down issues
    By gromit95 in forum Access
    Replies: 3
    Last Post: 07-21-2008, 08:14 AM
  4. Drop down question.
    By Simon Sweet in forum Forms
    Replies: 4
    Last Post: 02-05-2008, 12:32 PM
  5. Drop Down Menus
    By iambia in forum Access
    Replies: 1
    Last Post: 01-25-2008, 02:05 PM

Tags for this Thread

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