Results 1 to 3 of 3
  1. #1
    2 Star Lounger
    Join Date
    Sep 2006
    Posts
    166
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Archived table (Access 2000)

    I have a table products where i have product numbers that are obsolete but i do not want to delete them forever.Is it possible to make another table where to store the old products and how to do it ? I want to presrve the older id numbers of the products. Is it posible to create a code that appends and and after that deletes to chosen products ? Which is the best way ? I do not want to use the yes/no field to denote the old number with it, since it will create other problems

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

    Re: Archived table (Access 2000)

    You can create an append query to add records to the archive table, and a delete query that deletes those records from the main table.
    You can execute these queries in code using DoCmd.OpenQuery or CurrentDb.Execute.

    (Using a Yes/No field to specify which records are "archived" would be more efficient, but apparently you don't want that)

  3. #3
    2 Star Lounger
    Join Date
    Sep 2006
    Posts
    166
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Archived table (Access 2000)

    Thank you very much !

Posting Permissions

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