B
BJS
Let's say I have an EmpDoc table with the following
records:
Fred, Document1
Fred, Document2
The DocRead table (Employee, Document, DateRead,
Applicable) has:
Fred, Document1, 9/1/2004, Yes
If I do a left join and try to get a record that has
IsAppl=Yes for Docs that have not yet been read:
SELECT EmpDoc.Employee, EmpDoc.Document, Nz([Applicable],-
Yes) AS IsAppl
FROM EmpDoc LEFT JOIN DocRead ON (EmpDoc.Document =
DocRead.Document) AND (EmpDoc.Employee = DocRead.Employee);
the query works fine, returns -1 for both records. But if
I then base a report on this query, the Document2 record
shows IsAppl as 0, not -1. Using IIf instead of Nz has
the same result. Any ideas before I pull all my hair out?
records:
Fred, Document1
Fred, Document2
The DocRead table (Employee, Document, DateRead,
Applicable) has:
Fred, Document1, 9/1/2004, Yes
If I do a left join and try to get a record that has
IsAppl=Yes for Docs that have not yet been read:
SELECT EmpDoc.Employee, EmpDoc.Document, Nz([Applicable],-
Yes) AS IsAppl
FROM EmpDoc LEFT JOIN DocRead ON (EmpDoc.Document =
DocRead.Document) AND (EmpDoc.Employee = DocRead.Employee);
the query works fine, returns -1 for both records. But if
I then base a report on this query, the Document2 record
shows IsAppl as 0, not -1. Using IIf instead of Nz has
the same result. Any ideas before I pull all my hair out?