I have a table of of data that contains the fields 'Email' address and 'Alternate Email' addresses that are imported into a table. I've then created a duplicated table of the original data. What i'm trying to do, is update or append the emails from the 'Alternate Email' field to the 'Email' field whereby there is a matching criteria in the 'Alternate Email' field Like "*John Doe*".
For example, If record 250 in the 'Alternate Email' address field contained NickD@johndoe.co.uk, i want it to overwrite whats in the 'Email' field. If the 'Alternate Email' field is blank or doesn't contain 'John Doe', i want the update to skip to the next record.
The example Query as an update Query, i get the 40 records i would expect to see from the 'Alternate Email' field, but they won't update in the correct 'Email' field.
Any assistance on what i'm doing wrong wold be greatly appreciated....Do i need more Criteria rules or is my table selection incorrect as i've tried this multiple ways.
UPDATE UKG_People_Data_Feed_tbl_BAK INNER JOIN UKG_People_Data_Feed_tbl ON UKG_People_Data_Feed_tbl_BAK.[Employee Number] = UKG_People_Data_Feed_tbl.[Employee Number] SET UKG_People_Data_Feed_tbl.[Employee Number] = [UKG_People_Data_Feed_tbl_BAK].[Employee Number], UKG_People_Data_Feed_tbl.[First Name] = [UKG_People_Data_Feed_tbl_BAK].[First Name], UKG_People_Data_Feed_tbl.[Last Name] = [UKG_People_Data_Feed_tbl_BAK].[Last Name], UKG_People_Data_Feed_tbl.Username = [UKG_People_Data_Feed_tbl_BAK].[Username], UKG_People_Data_Feed_tbl.Country = [UKG_People_Data_Feed_tbl_BAK].[Country], UKG_People_Data_Feed_tbl.[Alternate Email] = [UKG_People_Data_Feed_tbl_BAK].[Email]
WHERE (((UKG_People_Data_Feed_tbl.[Alternate Email]) Like "*johndoe*"));
![]()