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

Multiple record Insert from 1 table to another

Status
Not open for further replies.

majordog

Programmer
Jul 8, 2002
222
CA
Hey All,
I have a table, that has three columns whose value must be derived from 3 other tables - In other words, Reg in Table A must be copied into the master table joined by the plate number which exists in both of them. The problem is there are multiple records to be updated. Can I do this? I got this far: (but Access just hangs there, when propmpted for the parameters, I just hit enter. What can I change to do this?)

UPDATE [Vehicles]
SET [Vehicles].RegiAirCare2001 =[Aircare_2001_Matched].[Registration]
WHERE [Aircare_2001_Matched].[LPRPlate] = [Vehicles].[LPRPlate]
 
At first glance, this doesn't appear to be a correct join.
I would change your statement to:
Update Vehicles INNER JOIN RegiAirCare ON [Aircare_2001_Matched].[LPRPlate] = [Vehicles].[LPRPlate]
SET [Vehicles].RegiAirCare2001 =[Aircare_2001_Matched].[Registration]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top