Update Query not posting

B

Bill 32301

When I run an update query using tables in the same database, records are
selected, but new data is not posted to fields in my main table. If I run
the same as an append, the new data is added in fields to the table as new
records. How do I get the update to post in the appropriate fields?

Microsoft Office Access 2007 Database

Any answers as to a solution?
 
M

Michel Walsh

If you want to update the unitPrice from a newList to an inventory table,
adding new records for new itemID and simply updating the unitPrice of the
existing ones:


UPDATE inventory RIGHT JOIN newList
ON inventory.itemID = newList.itemID
SET
inventory.itemID = newList.itemID,
inventory.UnitPrice = newList.UnitPrice




would do, with Jet.


Vanderghast, Access MVP
 
J

John W. Vinson

On Fri, 20 Feb 2009 07:53:01 -0800, Bill 32301 <Bill
When I run an update query using tables in the same database, records are
selected, but new data is not posted to fields in my main table. If I run
the same as an append, the new data is added in fields to the table as new
records. How do I get the update to post in the appropriate fields?

Correct the (apparent) error in your update query.

If you would like help doing so please open it in SQL view and post the SQL
text here, so the volunteers can see what you're doing!

It may help to also indicate which field(s) constitute the Primary Key, and
any relationships between the tables.
 

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

Top