G
Guest
I had asked for help on how to update two tables that are the same. I was
given the following:
UPDATE table1 AS T1 INNER JOIN table 2 As T2 on T1.id_column = T2.id_column
SET T1.col1 = Nz(T1.col1,T2.col1),T1.col2=Nz(T1.col2,T2.col2)
This worked as long as there was no data on the fields that were being
updated. But now I have to update to override existing data. Can I do this
in my query? How do I write that? Also if there is more than one column to
update, do I write this for each column? or can I write it all in one?
Thank you in advance for any help.
given the following:
UPDATE table1 AS T1 INNER JOIN table 2 As T2 on T1.id_column = T2.id_column
SET T1.col1 = Nz(T1.col1,T2.col1),T1.col2=Nz(T1.col2,T2.col2)
This worked as long as there was no data on the fields that were being
updated. But now I have to update to override existing data. Can I do this
in my query? How do I write that? Also if there is more than one column to
update, do I write this for each column? or can I write it all in one?
Thank you in advance for any help.