Results 1 to 2 of 2
  1. #1
    OpsO is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2010
    Posts
    12

    Reverse Sequence of Numbers

    I think the best way for me to ask the question is to explain the scenerio. Data is linked to an external source. Each time an event occurs (like a payday lets say), a new record is created and it is assigned a sequence number. (For argument sake, there is no set day or date that payday falls on.) Someone paid by the company two times would have two records, the first payday would be sequence # 1 and the second payday sequence # 2. Someone with the company multiple years could have 100 records or more. I am trying to isolate the highest sequence number for each employee. The highest number would indicate the latest event. I have utilized other software in the past and used a rank function which would reverse the numbers and then I could just filter for sequence = 1. Is there a way for me to do this in access.



    Thanks in advance for any help

  2. #2
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    there's several ways to approach it... one simple way is to make a query; use a person's name/ID as criteria - so that you are looking at only 1 person's records set....and then in the sequence column just set the sort to be descending....

    or you could use an aggregate query, look for the epsilon E symbol in query design; set it to group on the name and then the sequence column set that to Max.

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

Similar Threads

  1. Run queries in sequence and combo box
    By thart21 in forum Queries
    Replies: 10
    Last Post: 05-28-2010, 03:47 PM
  2. Reverse Cross Tab
    By indiana in forum Access
    Replies: 1
    Last Post: 03-12-2010, 10:11 PM
  3. Reverse an .mde
    By Marion in forum Access
    Replies: 2
    Last Post: 12-07-2009, 03:09 PM
  4. Find Missing Number in Sequence per Record
    By escuro19 in forum Programming
    Replies: 1
    Last Post: 11-10-2009, 03:15 PM
  5. Auto Sequence String Serial Number
    By eddyc99 in forum Programming
    Replies: 2
    Last Post: 10-02-2009, 08:11 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