Results 1 to 8 of 8
  1. #1
    b.saimsc is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2012
    Posts
    24

    Thumbs up Records needs to be count.....

    Hi all,

    I have created a form, depend upon payment status selection ( drop down have "paid", "not paid" , "insurance") I need separate count. please check the attached image for your reference. Please Help me...................



    Thank in Advance
    Attached Thumbnails Attached Thumbnails Count.jpg  

  2. #2
    b.saimsc is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2012
    Posts
    24
    please help me..

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    Try: =Sum(IIf([Payment Status]="Paid",1,0))
    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.

  4. #4
    b.saimsc is offline Novice
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2012
    Posts
    24
    Private Sub Text186_Click()
    Text186 = Sum(IIf([Payment Status] = "Paid", 1, 0))
    End Sub

    But getting
    Complile error:
    Sub or Function not denfined


    ......... not working

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    I meant for it to be in the ControlSource property of textbox.
    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.

  6. #6
    b.saimsc is offline Novice
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2012
    Posts
    24
    not getting result............instead of result it's showing "#Error" in that paid column

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    Works for me. If you want to provide db for analysis, follow instructions at bottom of my post.
    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.

  8. #8
    b.saimsc is offline Novice
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2012
    Posts
    24
    You rock..........It's working fine........Thank you so much

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

Similar Threads

  1. Replies: 1
    Last Post: 01-24-2013, 05:50 PM
  2. COUNT Group Count Records COUNT FUNCTION
    By PMCOFFEY in forum Access
    Replies: 9
    Last Post: 11-09-2012, 09:40 PM
  3. Count Records
    By Cheshire101 in forum Access
    Replies: 1
    Last Post: 11-30-2010, 03:02 PM
  4. Is it possible for me to count my records? how?
    By radicrains in forum Queries
    Replies: 4
    Last Post: 10-28-2010, 05:28 AM
  5. Count of records
    By Bruce in forum Forms
    Replies: 3
    Last Post: 03-22-2010, 01:30 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