Results 1 to 7 of 7
  1. #1
    ali zaib is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2012
    Posts
    14

    Post counting question


    can we use countif or sumif in access

  2. #2
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    Where are you wanting to use these?

    Could you give an example of what you want to achieve with those functions?

    If you want to use them in a Query - you could research the IIF function that is commonly used in Access queries.
    I believe you can achieve what you need with IIF.
    I have not come across sumif or countif in Access.

  3. #3
    ali zaib is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2012
    Posts
    14

    Post

    sir i want to count the total issue parts in jan and total amount of parts
    i face another problem when i sorting to month its start from april i mean a to z
    but i want to start from jan and end at dec

  4. #4
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    If you sort by month - then if you have data from Jan of 2010 and 2011 - you will get all those in your Jan sort.
    Is that what you want?
    Of course - you can put a criteria in to only select records for a certain year . . .

    If you want to sort by month - you will have to use a month number [Jan = 1, Feb = 2, Mar = 3 . . .] rather than the month name. That way all your records will sort by the month.

  5. #5
    RayMilhon is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,085
    I normally use 2 columns for date sorts the first in date format to sort by and the second to format the date "mmm yyyy" For display. If the query is a group by Then depending on if the criteria is Jan 1 through Dec 31 Or a different period that can have multiple years I sor by month([datefield] or I use 2 columns the first is Year([datefield]) the second is Month([datefield]).

  6. #6
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    Good one, Ray! I'll have to remember that the next time I need to do this.
    Didn't think of using different portions of the same date field to do my sorts on!
    Thanks!

  7. #7
    RayMilhon is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,085
    No problem Robeen, My brain is like a comet once every decade or so it passes by close enough for me to use it.

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

Similar Threads

  1. Counting Help
    By Jessyx in forum Access
    Replies: 1
    Last Post: 12-03-2011, 01:34 AM
  2. Counting Yes No Fields
    By pwilson in forum Queries
    Replies: 3
    Last Post: 11-29-2011, 10:29 AM
  3. Counting Only Certain Records
    By jtphenom in forum Queries
    Replies: 9
    Last Post: 03-29-2011, 01:25 AM
  4. Counting
    By rfs in forum Forms
    Replies: 0
    Last Post: 03-15-2011, 03:20 PM
  5. Counting Dates
    By JenBouchard in forum Access
    Replies: 1
    Last Post: 01-22-2010, 05:08 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