Results 1 to 6 of 6
  1. #1
    punna111 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2014
    Posts
    16

    Get 1st , 2nd, 3rd etc..Occurence of a text or number

    Hi all,

    below is my data i have.



    Amt
    100
    50
    100
    50
    300
    50
    50

    i need the count based on the occurrence, Count if is giving only total of count, but i need as below.

    Amt time of occurrence
    100 1
    50 1
    100 2
    50 2
    300 1
    50 3
    50 4



    Thanks,

  2. #2
    Perceptus's Avatar
    Perceptus is offline Expert
    Windows 7 64bit Access 2007
    Join Date
    Nov 2012
    Location
    Knoxville, Tennessee
    Posts
    659
    Im confused by your post. Are you using an aggregate query with 2 fields? Like below?

    SELECT Amt, Count(Amt) AS CountOfAmt
    FROM tblNotSpecified
    GROUP BY Amt

  3. #3
    punna111 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2014
    Posts
    16
    i used all the ways including above, but not getting the actual result

  4. #4
    Perceptus's Avatar
    Perceptus is offline Expert
    Windows 7 64bit Access 2007
    Join Date
    Nov 2012
    Location
    Knoxville, Tennessee
    Posts
    659
    Can you attach the DB?

  5. #5
    punna111 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2014
    Posts
    16
    Here is the db.Database2.zip

  6. #6
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    as advised in your almost identical question here

    https://www.accessforums.net/showthread.php?t=58083

    this cannot be done without a uniqueID (typically an autonumber)

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

Similar Threads

  1. Replies: 11
    Last Post: 02-26-2014, 10:40 AM
  2. Using Date and Occurence count to create a name
    By DatabaseIntern in forum Forms
    Replies: 1
    Last Post: 07-11-2013, 11:08 AM
  3. Replies: 6
    Last Post: 02-13-2013, 04:54 AM
  4. Report that inludes non-occurence?
    By chellelynn77 in forum Reports
    Replies: 3
    Last Post: 12-19-2011, 03:09 PM
  5. First and second occurence
    By jamphan in forum Queries
    Replies: 6
    Last Post: 08-23-2010, 09:54 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