I'm trying to update two fields in the [CorporateRetailerTbl] table, [Parent Company] and [Organization Name (DBA)]. I ONLY want these fields updated if Parent Company is Null. I want to update these fields to the value in [Organization Name (DBA)] in the [2015 Master Reg List] table. Here's the SQL:
UPDATE [2015 Master Reg List]
INNER JOIN CorporateRetailerTbl ON [2015 Master Reg List].[ID] = CorporateRetailerTbl.[ID]
SET CorporateRetailerTbl.[Parent Company] = [2015 Master Reg List].[Organization Name (DBA)], CorporateRetailerTbl.[Organization Name (DBA)] = [2015 Master Reg List].[Organization Name (DBA)]
WHERE (((CorporateRetailerTbl.[Parent Company]) Is Null));
I'm only getting the null fields and nothing is filling them. Also, sidenote...the Organization Name field in the CorporateRetailer table previously had the right data in it. But I ran an Update query and that field's records were updated with the empty/null values from the Parent Company field. The opposite of what I wanted to do.
Thanks for your help.
Basmster