The way it would know which records to update woule be based on the [Size] &
[MaterialType] fields. If they are both equal then have it update the
[BCPrice] field.
How would I write this into the update query?
In the query grid, add the table and the query. Drag the Size field
from the query to the Size field from the table, and the same with the
MaterialType.
Then put
[yourqueryname].[BCPrice]
on the Update To line under the table's BCPrice field. The brackets
are required - otherwise it will try to update to the text string you
type!
The query will ONLY work if you have a unique Index on thee
combination of Size and MaterialType in the table.
The SQL of the query (assuming that your query is named yourqueryname
and the table is named yourtablename, adjust as needed):
UPDATE yourtablename INNER JOIN yourqueryname
ON yourtablename.[Size] = yourqueryname.[Size]
AND yourtablename.[MaterialType] = yourqueryname.[MaterialType]
SET [yourtablename].[BCPrice] = [yourqueryname].[BCPrice];
John W. Vinson[MVP]