Results 1 to 5 of 5
  1. #1
    access321 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2014
    Posts
    8

    Macro to move a line of data from one table and it to another table - Access 2010

    Hi



    I have a form where I log support calls. When the call has been completed, I want to be able to click on a button which will take the support call from this form and populate a table called "Completed calls".
    There is no macro in Access's built in macros which will allow me to do this.
    What is the easiest way of resolving 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,652
    In a normalized db you'd leave them in one table and change a status field. That said, to move a record you could execute an append query and then a delete query, both with a criteria to select the desired record.
    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
    53,770
    Agree with Paul, don't move records - big pain. Set value of a field and apply filter in queries.
    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
    access321 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2014
    Posts
    8
    Thanks for your help. The reason I asked this is because if you have 500 supports calls and 495 have been completed, you still have a form with 500 supports calls, whereas I just wanted a "completed table" with 495 calls and the "incompleted table" to just show 5 support calls.pbaldy's idea is a good one if I did decide to use two tables.

  5. #5
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    I would probably have a single table and a form based on a query that returned only the incomplete calls. I'd only go with two tables if there was to be a massive number of records (like millions).
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 2
    Last Post: 11-19-2013, 04:35 PM
  2. Code to move data from table to another
    By zachlunch in forum Programming
    Replies: 1
    Last Post: 08-30-2013, 12:12 PM
  3. Move query data to a new table using VBA
    By Bob Blooms in forum Programming
    Replies: 1
    Last Post: 09-23-2012, 08:33 PM
  4. Move all access 2003 data to sharepoint 2010
    By accesstosharepoint in forum SharePoint
    Replies: 0
    Last Post: 10-22-2011, 08:32 AM
  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