A
Ann Scharpf
I am trying to create a relationship between two tables with referential
integrity. I'm trying to link on the following fields:
[ContractorLaborCategories].[CSCLabCatCode]
[Employees].[LabCat]
When I try to create, I get an error message that says "Data in the table
'Employees' violates referential integrity rules.
YET, when I create an unmatched query, I cannot find the offending
record(s). Here's the SQL for my query.
SELECT Employees.Employee, Employees.LabCat,
ContractorLaborCategories.CSCLabCatCode
FROM Employees INNER JOIN ContractorLaborCategories ON Employees.LabCat =
ContractorLaborCategories.CSCLabCatCode
WHERE (((ContractorLaborCategories.CSCLabCatCode) Is Null));
Can anyone help me to figure out what is the problem in my Employees table
that's preventing me from creating this relationship?
Thanks very much.
integrity. I'm trying to link on the following fields:
[ContractorLaborCategories].[CSCLabCatCode]
[Employees].[LabCat]
When I try to create, I get an error message that says "Data in the table
'Employees' violates referential integrity rules.
YET, when I create an unmatched query, I cannot find the offending
record(s). Here's the SQL for my query.
SELECT Employees.Employee, Employees.LabCat,
ContractorLaborCategories.CSCLabCatCode
FROM Employees INNER JOIN ContractorLaborCategories ON Employees.LabCat =
ContractorLaborCategories.CSCLabCatCode
WHERE (((ContractorLaborCategories.CSCLabCatCode) Is Null));
Can anyone help me to figure out what is the problem in my Employees table
that's preventing me from creating this relationship?
Thanks very much.