Results 1 to 5 of 5
  1. #1
    Forbes's Avatar
    Forbes is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Mar 2017
    Posts
    133

    Question Moving a Record to another table

    Hello fellow Access enthusiasts

    I have a form with 3 List Boxes lets call them This Week, Next Week, and old.

    On the form you can move a record from one list to the other using a command button. (Like from Next Week to This Week)

    I'd Imagine it would have to be something along the lines of copy record to tbl and delete record from prev tbl.



    Both tables have the exact same layouts and fields.


    I guess I'm just looking for a starting point to educate myself on the best way to do this.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Generally speaking, you wouldn't move stuff from table to table (like "archiving"). You'd change a status field (or whatever) and just filter on that. To move it, you'd use an append query and then a delete query. To update it, you'd use an update query or recordset.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Should not have to copy/move records to accomplish what you want.

    In addition to what Paul describes, review http://www.andypope.info/vba/listboxmover.htm
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  4. #4
    Forbes's Avatar
    Forbes is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Mar 2017
    Posts
    133
    Thanks for the advice! I am working on making this happen now, I will update you on the status when I have moved forward, this project is a little slower moving than my others

  5. #5
    Forbes's Avatar
    Forbes is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Mar 2017
    Posts
    133
    This all worked great, quite a bit of re-engineering. IDK where I would be with-out you guys. Cheers!

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

Similar Threads

  1. Replies: 1
    Last Post: 12-07-2015, 07:55 AM
  2. Replies: 1
    Last Post: 10-20-2013, 06:37 PM
  3. Replies: 3
    Last Post: 09-19-2012, 07:34 AM
  4. Moving to new record from a different form
    By liam_898 in forum Forms
    Replies: 12
    Last Post: 05-05-2012, 12:34 PM
  5. Moving a record.
    By Cutter596 in forum Queries
    Replies: 1
    Last Post: 08-02-2011, 02:49 PM

Tags for this Thread

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