Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update and/or Append one table from another!

Status
Not open for further replies.

Krell48

Programmer
Nov 27, 2002
8
US
I have a database where I extract data from two sources, merge the data for use by another program. The merged data is stored in a "working" table. I then need to either append or update another table for export. This table has a double key. I am looking for an easy way to update those where the double key already exists or add if they dont.

Any suggestions. Thanks.
 
i think if in your working table you do not allow duplicates
in your key fields (Indexed: Yes(No Duplicates), when you run your append query, if you setwarnings = false
it will only add the "new" records.

if your working table is static this should work. if it's built on the fly that's another story.

i hope this helps.
 
I may have mispoke. From my working table I will most likey have to both update and append. Somehow I need to test if record exists, if so update. If record doesn't exist I will need to add. I am looking for an approach.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top