• Archived table (Access 2000)

    Author
    Topic
    #443253

    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

    Viewing 0 reply threads
    Author
    Replies
    • #1068815

      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)

    Viewing 0 reply threads
    Reply To: Archived table (Access 2000)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: