Results 1 to 5 of 5
  1. #1
    3 Star Lounger
    Join Date
    Apr 2001
    Location
    Joliette, Quebec, Canada
    Posts
    290
    Thanks
    9
    Thanked 0 Times in 0 Posts

    auto number starting at 1 from a make table query (2000)

    How can I generate an auto number field and then have this field indexed in a make table query?

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

    Re: auto number starting at 1 from a make table query (2000)

    You can't. You'll have to add the AutoNumber field after running the make-table query, either manually or using code.

  3. #3
    3 Star Lounger
    Join Date
    Apr 2001
    Location
    Joliette, Quebec, Canada
    Posts
    290
    Thanks
    9
    Thanked 0 Times in 0 Posts

    Re: auto number starting at 1 from a make table query (2000)

    How about adding a auto number manually, then running a delete query to delete all records then running an append query to the empty table?

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

    Re: auto number starting at 1 from a make table query (2000)

    That's possible. The AutoNumber won't start at 1 again, but that shouldn't be a problem.

  5. #5
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: auto number starting at 1 from a make table query (2000)

    Actually, if none of the service packs for Office/Access 2000 are installed, the Autonumber *will* restart at 1 even when it shouldn't. That bug was fixed, unfixed and refixed by the several Office 2000 service packs.
    Charlotte

Posting Permissions

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