Results 1 to 2 of 2
  1. #1
    fuzzywig is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    1

    move a row from one table to another in the same database

    Hi,

    Not sure if this is possible, but here goes.

    I am creating a repairs database, what I want to do is create two separate tables one called open jobs and the second called closed jobs, when I have completed the repair I want to click a button that will move the completed job to the closed table. This button will be placed on the form for the open job.



    Thanks for any help.

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    You could do this using an Append Query to copy the data from one table to the next, and then use a subsequent Delete Query to remove it from the original.

    However, I would caution you against trying to move records from one table to the other. If the jib gets interrupted or there is some kind of error where one of the two action queries does not work properly, it could destroy the integrity of your database. It seems to me that a better approach would just be to add a "Closed" Yes/No field to your table, and just update that field when you want to close the record. No need for two tables then, and no need to move data.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 19
    Last Post: 06-05-2012, 08:19 AM
  2. Replies: 5
    Last Post: 04-13-2012, 02:51 PM
  3. move database
    By fanfan2 in forum Access
    Replies: 3
    Last Post: 05-27-2011, 10:25 AM
  4. Move or Copy a table to another database
    By Harley Guy in forum Access
    Replies: 7
    Last Post: 11-08-2010, 11:49 PM
  5. Move data from one table to another
    By rebyrd in forum Queries
    Replies: 2
    Last Post: 12-24-2009, 12:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums