Given:
3 tables:
(1) customer (2) contract (3) fleet
1-to-many relationship customer-to-contract and contract-to-fleet
The fleet table lists vehicles with fields: VehID (pk), contract_no (fk), mfg, VIN, and a just-added field plateno
The customer has sent in a spreadsheet (imported into table: temp1) that has the plate number for each vehicle. I am trying to update the fleet table with the new plate number.
I have tried the following:
UPDATE tblVehicles SET tblVehicles.plateno = (SELECT plate
FROM temp1
WHERE tblVehicles.VIN = temp1.VIN)
WHERE EXISTS
(SELECT temp1.plate
FROM temp1
WHERE tblVehicles.VIN = temp1.VIN);
but get an error message "...must be updateable table."
Ideas??
Thanks.
dr
3 tables:
(1) customer (2) contract (3) fleet
1-to-many relationship customer-to-contract and contract-to-fleet
The fleet table lists vehicles with fields: VehID (pk), contract_no (fk), mfg, VIN, and a just-added field plateno
The customer has sent in a spreadsheet (imported into table: temp1) that has the plate number for each vehicle. I am trying to update the fleet table with the new plate number.
I have tried the following:
UPDATE tblVehicles SET tblVehicles.plateno = (SELECT plate
FROM temp1
WHERE tblVehicles.VIN = temp1.VIN)
WHERE EXISTS
(SELECT temp1.plate
FROM temp1
WHERE tblVehicles.VIN = temp1.VIN);
but get an error message "...must be updateable table."
Ideas??
Thanks.
dr