Results 1 to 4 of 4
  1. #1
    5 Star Lounger
    Join Date
    Jan 2001
    Location
    austin, Texas, USA
    Posts
    1,029
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Access Project - copy/rename/reset (A2K, win2KPro)

    I have an access project that we've decided to use for a given filing system only. this means that when we want to use the access project for a new filing system, we will need to make a copy of the access file, delete any records and compact/repair the new (named) copy to reset autonumbering to 0. There's several ways to do this (I prefer MANUALLY) but I was wondering if anyone has had experience doing this sort of thing in code. (In case you're wondering, by 'filing system' I mean, a bunch of files in cartons. the access project is a untility for cataloging actual physical files.)

    TIA

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

    Re: Access Project - copy/rename/reset (A2K, win2KPro)

    <post:=358,219>post 358,219</post:> contains sample code to delete all records from a table and reset the AutoNumber.

  3. #3
    5 Star Lounger
    Join Date
    Jan 2001
    Location
    austin, Texas, USA
    Posts
    1,029
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Access Project - copy/rename/reset (A2K, win2KPro)

    thanks for the reply...the thread you reference had to do with manipulating the autonumber seed, and I want to reset it in the copied db -- just do a compact and repair. ... it's not a huge issue right now, tho -- I am rather resistent to making this function available with the press of a button tho. need to think about it. thanks tho!

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

    Re: Access Project - copy/rename/reset (A2K, win2KPro)

    In many recent versions of the Jet Engine, compact and repair fails to reset the autonumber. Hence the code.

Posting Permissions

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