Re: Appending a record



OK. I don't know what you're doing wrong but try this for your update
query:

UPDATE Table1 INNER JOIN Table2 ON Table1.BatchID = Table2.BatchID SET
Table1.[Solv GAL] = [table2].[Solv GAL], Table1.[PT LB] = [table2].[PT LB],
Table1.[Acid LB] = [table2].[Acid LB];

In this example, I'm using "Table1" and "Table2", but you should use your
actual table names.

Give this a try and see what happens.

--
--Roger Carlson
MS Access MVP
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/wa.exe?SUBED1=ACCESS-L


<LCallesen@xxxxxxxxx> wrote in message
news:1139345544.923390.320830@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi Roger-

Thank you so much for all of your help so far. I did exactly what you
suggested. Everything seemed to work (aka, I did not receive any
errors), but the query did not appear to update the fields. I brought
the new text file into a temporary table as you suggested, which worked
fine.

This is where my knowledge really gets fuzzy. I can't be 100% sure
that I joined the tables correctly, or that my update query is working
as it should.

Here is a little more background on my project:
I am creating a database to keep track of information from a chemical
process (ie. temperatures, weights, etc...) Some of the information
can be automatically read in, while others have to be manually entered.
Some of the automatic information is available as soon as the batch
starts, and is imported to create the new record. Operators can then
enter most of the other manual data while the process is running via a
form. However, toward the end of the process, there is more
information that automatically comes in and has to be added to the
database and associated with that particular batch. This is the second
.txt file. The common field is named "Batch ID" and the fields that I
am updating are "Solv GAL", "PT LB" and "Acid LB". These names are the
same in both tables.

If you need more information, please let me know. Thanks (again) in
advance...

Lindsey



.



Relevant Pages

  • Re: DBMS and lisp, etc.
    ... Naively implemented with SQL, again for 10 ... (1 query for the initial orders, 1 query for each order for its ... soon as you upgrade to the SQL database. ... (eq (order-customer orderA) ...
    (comp.lang.lisp)
  • Re: OT: SQL
    ... query processing. ... FROM Employees e, Employees m, Management mgt ... Manager and Employee Salaries. ... The scheme used does not model database files in general, ...
    (sci.logic)
  • Re: access 2003
    ... I removed the parameters from the form query source. ... boxes from the form header, events, code, etc and ran the form query source ... forms queries and the SQL because syntax of the SQL will change randomly. ... the Access 97 database, I wouldn't have thought any expressions would be ...
    (microsoft.public.access.conversion)
  • RE: Import external data - web query
    ... Your reply for my query is very extensive, this is for importing a file from ... The data source I want isn't listed in the Select Data Source dialog box. ... information used to connect to a database. ... Check your driver First, make sure you have the right ODBC driver (Open ...
    (microsoft.public.excel.misc)
  • Re: access 2003
    ... I removed the parameters from the form query source. ... synchronize combo boxes to the detail section or the parameter form query ... forms queries and the SQL because syntax of the SQL will change randomly. ... the Access 97 database, I wouldn't have thought any expressions would ...
    (microsoft.public.access.conversion)