S
stephenk.smith
I have a fairly straightforward question that I hope someone here has
encountered before. Here goes...
I have 2 tables:
Table 1
part_no - number
price - number
Table 2
part_no - number
new_price - number
I have 2 queries: 1st is used to calculate a new price, second is used
to update table2's price with new price from 1st query.
Query 1 - Selects part_no and price from table1
Query 2 - Updates new_price based on fields from Query 1
(ie. UPDATE table 2 SET new_price = price WHERE table1.part_no =
table2.part_no)
For some reason I cannot get the update query to run successfully. I
get the errors "Must use updatable query" or "Type mismatch in
expression" based on how I structure query 2.
I heard that it might not be possible to do an update query in this
fashion (from a select query). Any suggestions would be great. Thanks!
encountered before. Here goes...
I have 2 tables:
Table 1
part_no - number
price - number
Table 2
part_no - number
new_price - number
I have 2 queries: 1st is used to calculate a new price, second is used
to update table2's price with new price from 1st query.
Query 1 - Selects part_no and price from table1
Query 2 - Updates new_price based on fields from Query 1
(ie. UPDATE table 2 SET new_price = price WHERE table1.part_no =
table2.part_no)
For some reason I cannot get the update query to run successfully. I
get the errors "Must use updatable query" or "Type mismatch in
expression" based on how I structure query 2.
I heard that it might not be possible to do an update query in this
fashion (from a select query). Any suggestions would be great. Thanks!