Results 1 to 4 of 4
  1. #1
    cement is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2010
    Posts
    12

    An integrated Append + Update query ?!

    Hi,

    i have a linked table in my DB, and i have created Append and Update queries for both inserting new records , and for updating existing ones.

    but since there are many linked tables in my DB, i am realizing this way of doing this to be a pain, really.

    my question is that is it possible and how can i do both the Append and Update actions in just one query or something like that , so that i don't have to create an Append query for each table, and then redo the steps for another update query and have to run the two queries for each table when i have some new (and updated) records to be written to my tables.

    thanks in advance for your help.

  2. #2
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    you can't do append and update by one query.

    are you to update the same table which you just append to? in this case ,it's possible to do both in one append query(only append, not append and update).

    if it's not possible to combine the 2 queries into 1, you can create macro or module to do it.

  3. #3
    cement is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2010
    Posts
    12
    yes, i both have new records and modified records, so i am doing that on the same table.

    how can i tell it to append the new records and check and if there is some records with same IDs as on the target table, then do the update procedure for them ?

    i still don't get how can i do.
    can you also please explain a bit more about the macro or module approach you talked about ?

    Thanks

  4. #4
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    macro or module is something like that you can run a list of actions. e.g
    run query1
    run query2
    etc.
    ...

    you may look at a textbook or search on internet for more details.

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

Similar Threads

  1. append query
    By kroenc17 in forum Queries
    Replies: 8
    Last Post: 11-30-2010, 10:09 AM
  2. Append/Update Query -- Need Help!
    By su-san in forum Queries
    Replies: 12
    Last Post: 11-08-2010, 12:52 PM
  3. Replies: 1
    Last Post: 03-23-2010, 04:01 PM
  4. Append query won't append
    By yelkenli in forum Queries
    Replies: 5
    Last Post: 02-12-2010, 11:19 AM
  5. Append Query
    By cotri in forum Queries
    Replies: 1
    Last Post: 01-28-2010, 08:52 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