I cannot figure this out.
tbl_Vendor_Release_Info is a table on MSSQL with Co_No; Div_No and Vendor_No as PKs.
CMSqry_Vendor_and_Contacts is a pass-through query with no (?) pk.
I would prefer to normalize the db and not include the Vendor_Name (Contact, Tele, etc...) in the MSSQL table at all, but for other reasons I just can't seem to get it. That however is another problem (probably due to my inexperience).
Code:
UPDATE tbl_Vendor_Release_Info
INNER JOIN CMSqry_Vendor_and_Contacts
ON (tbl_Vendor_Release_Info.Vendor_No = CMSqry_Vendor_and_Contacts.VENDOR_NO)
AND
(tbl_Vendor_Release_Info.Div_No = CMSqry_Vendor_and_Contacts.DIV_NO)
AND
(tbl_Vendor_Release_Info.Co_No = CMSqry_Vendor_and_Contacts.CO_NO)
SET tbl_Vendor_Release_Info.Vendor_Name = [CMSqry_Vendor_and_Contacts].[vendor_name]
tbl_Vendor_Release_Info is a table on MSSQL with Co_No; Div_No and Vendor_No as PKs.
CMSqry_Vendor_and_Contacts is a pass-through query with no (?) pk.
I would prefer to normalize the db and not include the Vendor_Name (Contact, Tele, etc...) in the MSSQL table at all, but for other reasons I just can't seem to get it. That however is another problem (probably due to my inexperience).