Can I "Append" and "Update" in one operation?

  • Thread starter Thread starter Robin Chapple
  • Start date Start date
R

Robin Chapple

I have a database on my domain server. Additions and updates are
collected as a CSV file.

I need to append the new entries to a desktop and also update the
existing records on the desktop.

Thanks,

Robin Chapple
 
Robin said:
I have a database on my domain server. Additions and updates are
collected as a CSV file.

I need to append the new entries to a desktop and also update the
existing records on the desktop.

If you build an UPDATE query that updates Table1 with all of the fields from
Table2 and use an Outer Join (All records from Table2 and matching from
Table1) then records that exist only in Table2 will be appended to Table1
while all records that exist in both will be updated in Table1.
 
Robin Chapple said:
I have a database on my domain server. Additions and updates are
collected as a CSV file.

I need to append the new entries to a desktop and also update the
existing records on the desktop.

Yes. Create an Update query and it will automatically append new records
in Access SQL, unlike SQL Server and ANSI SQL.

Tom Lake
 
Thanks for that.

I see one problem:

"" NOTE: An update query can append and update records only if the
tables contain a unique index that does not have the AutoNumber data
type (or Counter data type in version 2.0). ""

Can I change the autonumber field on the desktop machine to a normal
number field to accommodate this?

The auto nimbler field will remain on the remote server.

Thanks,

Robin Chapple
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top