S
Slez via AccessMonster.com
I have a subform that won't allow me to enter new records which I have traced
back to the fact that the query it's based off of doesn't allow them. Rather
than trying to explain in detail my table layout, I was thinking I could post
the SQL below and hopefully someone could steer me in the direction of what I
should be looking for. The error message I get is: "The changes you
requested ....would create duplicate values...", yet I can enter directly
into the associated tables without error. Any suggestions??
Thanks in advance for any help!
SELECT tblFinishSample.JobNumber, tblFinishSample.SampleID, tblFinishFormula.
Qty, tblFinishColors.FinishItemID, tblFinishColors.FinishItemName,
tblFinishColors.GroupID, tblFinishGroup.GroupName
FROM tblFinishSample INNER JOIN (tblFinishGroup INNER JOIN (tblFinishColors
INNER JOIN tblFinishFormula ON tblFinishColors.FinishItemID =
tblFinishFormula.FinishItemID) ON tblFinishGroup.GroupID = tblFinishColors.
GroupID) ON (tblFinishSample.SampleID = tblFinishFormula.SampleID) AND
(tblFinishSample.JobNumber = tblFinishFormula.JobNumber)
WHERE (((tblFinishSample.JobNumber)=[Forms]![frmFinishFormulaEntry]!
[JobNumber]) AND ((tblFinishSample.SampleID)=[Forms]![frmMainScreen]!
[frmFinishSampleEntry]![SampleID]))
ORDER BY tblFinishSample.SampleID, tblFinishColors.FinishItemID;
back to the fact that the query it's based off of doesn't allow them. Rather
than trying to explain in detail my table layout, I was thinking I could post
the SQL below and hopefully someone could steer me in the direction of what I
should be looking for. The error message I get is: "The changes you
requested ....would create duplicate values...", yet I can enter directly
into the associated tables without error. Any suggestions??
Thanks in advance for any help!
SELECT tblFinishSample.JobNumber, tblFinishSample.SampleID, tblFinishFormula.
Qty, tblFinishColors.FinishItemID, tblFinishColors.FinishItemName,
tblFinishColors.GroupID, tblFinishGroup.GroupName
FROM tblFinishSample INNER JOIN (tblFinishGroup INNER JOIN (tblFinishColors
INNER JOIN tblFinishFormula ON tblFinishColors.FinishItemID =
tblFinishFormula.FinishItemID) ON tblFinishGroup.GroupID = tblFinishColors.
GroupID) ON (tblFinishSample.SampleID = tblFinishFormula.SampleID) AND
(tblFinishSample.JobNumber = tblFinishFormula.JobNumber)
WHERE (((tblFinishSample.JobNumber)=[Forms]![frmFinishFormulaEntry]!
[JobNumber]) AND ((tblFinishSample.SampleID)=[Forms]![frmMainScreen]!
[frmFinishSampleEntry]![SampleID]))
ORDER BY tblFinishSample.SampleID, tblFinishColors.FinishItemID;