G
Guest
I maintain a central database (add/delete/edit) using information from a
number of sources - I have created several queries which compare 2 tables
which output any differences between the two. All of them work apart from the
one below
SELECT Pathologyold.*, Pathologynew.*
FROM Pathologyold INNER JOIN Pathologynew ON Pathologyold.ID =Pathologynew.ID
WHERE (((Pathologyold.[Initial biopsy])<>[Pathologynew].[Initial biopsy]))
OR (((Pathologyold.[Initial histology])<>[Pathologynew].[Initial histology]))
OR (((Pathologyold.[Final histology])<>[Pathologynew].[Final histology])) OR
(((Pathologyold.[Lymph node mets])<>[Pathologynew].[Lymph node mets])) OR
(((Pathologyold.Grade)<>[Pathologynew].[Grade])) OR
(((Pathologyold.[Peritoneal washings])<>[Pathologynew].[Peritoneal
washings])) OR
(((Pathologyold.[Path report date])<>[Pathologynew].[Path report date]));
I have tested the query by creating identical tables - pathologyold and
pathologynew and amending the contents of the fields.
The query works for the fields [Final histology] onwards, but refuses to
pick up any changes in the first two fields [Initial biopsy] or [Initial
histology]
Any suggestions ?
number of sources - I have created several queries which compare 2 tables
which output any differences between the two. All of them work apart from the
one below
SELECT Pathologyold.*, Pathologynew.*
FROM Pathologyold INNER JOIN Pathologynew ON Pathologyold.ID =Pathologynew.ID
WHERE (((Pathologyold.[Initial biopsy])<>[Pathologynew].[Initial biopsy]))
OR (((Pathologyold.[Initial histology])<>[Pathologynew].[Initial histology]))
OR (((Pathologyold.[Final histology])<>[Pathologynew].[Final histology])) OR
(((Pathologyold.[Lymph node mets])<>[Pathologynew].[Lymph node mets])) OR
(((Pathologyold.Grade)<>[Pathologynew].[Grade])) OR
(((Pathologyold.[Peritoneal washings])<>[Pathologynew].[Peritoneal
washings])) OR
(((Pathologyold.[Path report date])<>[Pathologynew].[Path report date]));
I have tested the query by creating identical tables - pathologyold and
pathologynew and amending the contents of the fields.
The query works for the fields [Final histology] onwards, but refuses to
pick up any changes in the first two fields [Initial biopsy] or [Initial
histology]
Any suggestions ?