Results 1 to 4 of 4
  1. #1
    Tenmakk is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Posts
    35

    Adding the same record into 2 databases at the same time

    Hello. The way my program runs is that when a button is clicked on the form it will create a record, export it to excel, then it deletes it from the table. So basically the record is created and deleted with the button click, leaving me with a blank table (as designed).

    I would like to send of a copy of the records I initially created into another "backup" table. This way, I'll have a table of all the records. I would have a backup of the records and will be able to keep track of and manage everything created.

    I can't seem to figure out what to do. The best I can find on the net is that this is considered to be "bad code," but I can't find an actual way to do this.



    Thank you.

  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,642
    If the table is in the same db, you can execute an append query before deleting.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Micron is offline Very Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,372
    Why bother deleting the first one? If you want to get at this "backup" from another db, just link from it to the first table. That way, it will be available in either one.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  4. #4
    Tenmakk is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Posts
    35
    OK. Thanks. It was easier than I thought.

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

Similar Threads

  1. Replies: 12
    Last Post: 07-19-2015, 05:21 PM
  2. Replies: 8
    Last Post: 12-29-2014, 08:13 AM
  3. Replies: 2
    Last Post: 06-20-2014, 12:33 PM
  4. Adding Time help
    By Bozilla in forum Forms
    Replies: 3
    Last Post: 11-08-2011, 09:18 AM
  5. Adding the Date & Time record added
    By jo15765 in forum Access
    Replies: 2
    Last Post: 11-26-2010, 11:31 PM

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