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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update Queries and modifying records in a table

Status
Not open for further replies.

techsupport3977

Technical User
Mar 7, 2005
56
US
I have a query that has fields qProduct, qSize, and qAmount.

I have a table that has fields tProduct, tSize, and tAmount.

The query will crank and depending on the situation will produce different numbers in the size and amount field, but the product will stay the same. I need to update the product which only is listed once in the table with the result from the query.

Example:

Table

tProduct tSize tAmount
Ball 20" 500
Scooter Large 25
Bat Medium 300

Query

qProduct qSize qAmount
Ball 20" 350
Bat Large 200


After Update the Table should look like this:

Table

tProduct tSize tAmount
Ball 20" 350
Scooter Large 25
Bat Large 200

How do I set the Update Query in Access to understand this?
 
Hi

UPDATE tblProduct INNER JOIN tQueryBase ON tblProduct.tProduct = tQueryBase.qProduct SET tblProduct.tSize = [tQueryBase].[qSize], tblProduct.tAmount = [tQueryBase].[qAmount];


Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top