try this
update table1 set err_msg = "No Match" from table1 ,table2 where filename=mainfile and xref<>referencedfile
this will update the table 1 which i hope has the field for error message i give it a name err_msg with "No Match" where the file names are same and the ref file no same.
Main Topics
Browse All Topics





by: nickwoolleyPosted on 2002-09-05 at 01:53:53ID: 7263938
Are you working with an Access database?
You might like to try the following, where field? is the 'another field' you want to update:
UPDATE [table?].[field?] LEFT JOIN [table2] ON [table1].[Xref] = [table2].[referenced file]
SET [table?].[field?] = [table1].[Xref]
WHERE ((([table2].[referenced file]) Is Null))