Hi all,
I need a little help with something which is the final snag in my project.
I've got a multi-table query called Qry_Print. It is based on several tables and for the first two records i entered everything was fine. Then when i entered a third record (via a form), the record appears in the table but not in the query ?. Someone has suggested to me that the problem might lie in the joins specified in the query but i can't seem to change them.
One thing i did notice is that if i fill in all the fields, the record will show up in the query but if i leave a few blank the it doesn't ? I will need to leave some fields blank and then update them a few days later so the query as it stands is of no use to me. here's the SQL for the query.
I'd be grateful for any help guys.
I need a little help with something which is the final snag in my project.
I've got a multi-table query called Qry_Print. It is based on several tables and for the first two records i entered everything was fine. Then when i entered a third record (via a form), the record appears in the table but not in the query ?. Someone has suggested to me that the problem might lie in the joins specified in the query but i can't seem to change them.
One thing i did notice is that if i fill in all the fields, the record will show up in the query but if i leave a few blank the it doesn't ? I will need to leave some fields blank and then update them a few days later so the query as it stands is of no use to me. here's the SQL for the query.
I'd be grateful for any help guys.
Code:
SELECT Tbl_Master.AssessmentID, Tbl_Master.AssessmentName, Tbl_Master.AssessmentDate, Tbl_Master.LocationBlock, Tbl_Master.DepartmentPlant, Tbl_Master.AssessorName, Tbl_QuestionLU.QuestionText, Tbl_Q1LU.Q1Text, Tbl_Q2LU.Q2Text, Tbl_Q3LU.Q3Text, Tbl_Q4LU.Q4Text, Tbl_Q5LU.Q5Text, Tbl_Master.Notes, Tbl_ExistingRRN.ExProbability, Tbl_ExistingRRN.ExSeverity, Tbl_ExistingRRN.ExFrequency, Tbl_ExistingRRN.ExPeopleAffected, Tbl_SeverityLU.SevDescription, Tbl_FrequencyLU.FreqDescription, Tbl_ProbabilityLU.ProbDescription, PeopleAffectedLU.PeopleDescription, Tbl_ResidualRRN.ResProbability, Tbl_ResidualRRN.ResSeverity, Tbl_ResidualRRN.ResFrequency, Tbl_ResidualRRN.ResPeopleAffected, Tbl_ResProbabilityLU.ResProbDescription, Tbl_ResSeverityLU.ResSevDescription, Tbl_ResFrequencyLU.ResFreqDescription, Tbl_ResPeopleAffectedLU.ResPeopleDescription, Tbl_Master.AssessmentType
FROM Tbl_SeverityLU INNER JOIN (Tbl_QuestionLU INNER JOIN (Tbl_Q5LU INNER JOIN (Tbl_Q4LU INNER JOIN (Tbl_Q3LU INNER JOIN (Tbl_Q2LU INNER JOIN (Tbl_Q1LU INNER JOIN (Tbl_ProbabilityLU INNER JOIN ((Tbl_Master INNER JOIN (Tbl_FrequencyLU INNER JOIN (PeopleAffectedLU INNER JOIN Tbl_ExistingRRN ON PeopleAffectedLU.PeopleAffectedID=Tbl_ExistingRRN.ExPeopleAffected) ON Tbl_FrequencyLU.FrequencyID=Tbl_ExistingRRN.ExFrequency) ON Tbl_Master.AssessmentID=Tbl_ExistingRRN.AssessmentID) INNER JOIN ((((Tbl_ResidualRRN INNER JOIN Tbl_ResProbabilityLU ON Tbl_ResidualRRN.ResProbability=Tbl_ResProbabilityLU.ProbabilityID) INNER JOIN Tbl_ResSeverityLU ON Tbl_ResidualRRN.ResSeverity=Tbl_ResSeverityLU.SeverityID) INNER JOIN Tbl_ResFrequencyLU ON Tbl_ResidualRRN.ResFrequency=Tbl_ResFrequencyLU.FrequencyID) INNER JOIN Tbl_ResPeopleAffectedLU ON Tbl_ResidualRRN.ResPeopleAffected=Tbl_ResPeopleAffectedLU.PeopleAffectedID) ON Tbl_Master.AssessmentID=Tbl_ResidualRRN.AssessmentID) ON Tbl_ProbabilityLU.ProbabilityID=Tbl_ExistingRRN.ExProbability) ON Tbl_Q1LU.Q1ID=Tbl_Master.Q1) ON Tbl_Q2LU.Q2ID=Tbl_Master.Q2) ON Tbl_Q3LU.Q3ID=Tbl_Master.Q3) ON Tbl_Q4LU.Q4ID=Tbl_Master.Q4) ON Tbl_Q5LU.Q5ID=Tbl_Master.Q5) ON Tbl_QuestionLU.QuestionID=Tbl_Master.Question) ON Tbl_SeverityLU.SeverityID=Tbl_ExistingRRN.ExSeverity;