R
rbb101
I have two identical tables. Information is input into each table by two
seperate sources. I would like to have a query that compares the fields in
each table and list those records with any field that does not match. The
code below does not work, but I am trying to get something along these lines
that does. I want it to compare 3 fields in two idential tables and list the
CLNum if any of the fields do not match.
SELECT tblCalAudit.ClNum
FROM tblCalAudit INNER JOIN tblCalField ON (tblCalAudit.[LeakY/N] <>
tblCalField.[LeakY/N]) OR (tblCalAudit.LossLeak <> tblCalField.LossLeak) OR
(tblCalAudit.LAELeak <> tblCalField.LAELeak)
WITH OWNERACCESS OPTION;
seperate sources. I would like to have a query that compares the fields in
each table and list those records with any field that does not match. The
code below does not work, but I am trying to get something along these lines
that does. I want it to compare 3 fields in two idential tables and list the
CLNum if any of the fields do not match.
SELECT tblCalAudit.ClNum
FROM tblCalAudit INNER JOIN tblCalField ON (tblCalAudit.[LeakY/N] <>
tblCalField.[LeakY/N]) OR (tblCalAudit.LossLeak <> tblCalField.LossLeak) OR
(tblCalAudit.LAELeak <> tblCalField.LAELeak)
WITH OWNERACCESS OPTION;