Results 1 to 2 of 2
  1. #1
    Super Moderator WebGenii's Avatar
    Join Date
    Jan 2001
    Location
    Redcliff, Alberta, Canada
    Posts
    4,066
    Thanks
    2
    Thanked 5 Times in 5 Posts

    Assigning a new ID number in a Query (Access 2002)

    I want to write a query that will create an ID number for each of the resulting records.
    Scenario:
    I have a query that gives me the current members of a group (this information will change as people are assigned and reassigned from the group). They are listed alphabetically.
    I want to be able to refer to the first record, second record, third record, etc. in the results of the above query.

    I though the best way to accomplish this would be to assign each record a temporary ID number that I could then use as a reference to pull specific records out of the query.

    Any suggestions?
    [b]Catharine Richardson (WebGenii)
    WebGenii Home Page
    Moderator: Spreadsheets, Other MS Apps, Presentation Apps, Visual Basic for Apps, Windows Mobile

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Assigning a new ID number in a Query (Access 2002)

    See if you can adapt the solutions provided in the thread starting at <post#=250833>post 250833</post#>. Your situation is actually simpler, since you don't need to group the records. Post back if you need more assistance.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •