Results 1 to 3 of 3
  1. #1
    drunkenneo is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Jun 2013
    Posts
    199

    Command Other than Append

    We know when executing append query in a table if the query executed twice, then duplicate data get inserted,



    Is there any other best solution to avoid such cases?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    Options:

    1. avoid the situation - why are you using append query?

    3. have code check if data already in table and don't run query if already in table

    However, if users have access to objects in the navigation pane, and the append is a query object as opposed to a VBA executed SQL action, nothing will prevent them running the query object.
    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.

  3. #3
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Also, if you have some unique primary key identifiers built-in (that aren't autonumbers), this will also prevent the duplication of records (as it would be a key field violation to try to add the same value twice for a field required to be unique).

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

Similar Threads

  1. Replies: 1
    Last Post: 10-06-2011, 08:37 AM
  2. Replies: 7
    Last Post: 07-21-2011, 01:01 PM
  3. Replies: 1
    Last Post: 07-27-2010, 02:27 PM
  4. Append query won't append
    By yelkenli in forum Queries
    Replies: 5
    Last Post: 02-12-2010, 11:19 AM
  5. Replies: 1
    Last Post: 01-20-2010, 12:54 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