Results 1 to 2 of 2
  1. #1
    waltsyd is offline Novice
    Windows 8 Access 2010 32bit
    Join Date
    Jan 2014
    Posts
    1

    Is an update query safer than delete/append?

    While designing data import from a remote database, I began to wonder if one method is inherently more risky than the other. My remote database has a field called [Synced]. If that field is set to false (which it is if edited in the remote database), then the remote data will be updated into the existing database. The table structures may change, so I can't really create a bunch of queries beforehand; I create them on the fly. There are two ways to do the import:



    1. Delete all records in main table where the remote [Synced] is False, then use append * to grab all remote records that do not exist in the main. Pretty simple.

    2. Create an update query on the fly to update all records in the main table with the fields in the remote table. Requires examining table definitions and creating an update query string.

    Number 1 seems more risky, possibly leading more easily to database corruption and/or bloat. Number 2 seems safer, but the steps necessary to create the update query on the fly are a lot more complicated.

    What is your opinion? Is all that delete/append more risky?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,523
    An update would seem to be faster.

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

Similar Threads

  1. Append, Update or Delete?
    By Deggsy in forum Queries
    Replies: 11
    Last Post: 05-26-2015, 09:07 AM
  2. Replies: 6
    Last Post: 12-03-2014, 10:28 PM
  3. Replies: 1
    Last Post: 01-16-2013, 10:58 AM
  4. Replies: 7
    Last Post: 07-14-2012, 01:02 AM
  5. #Deleted issue with Delete/Append Query
    By WendyCha in forum Access
    Replies: 4
    Last Post: 08-05-2011, 08:34 AM

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