Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query not responding as expected

Status
Not open for further replies.

GWINTO

IS-IT--Management
Nov 26, 2001
188
GB
The following SQL statement (SQL view from a query) is only producing 1 record when their are multiple records matching the criteria. The relationships from the tables are
ProcessCheck(many) to (one)Candidates(many) to (one)Course(many) to (one)Project Manager. The intention is to produce a letter (via a report) to all candidates under a Project Manager that have not had one marked as sent. The letter needs to contain information on the candidate, course and Project manager. any body know why this won't produce all the relevant records

SELECT ProjectManagers.ProjManagerID, Candidates.Forename, [Forename] & " " & [surname] AS FullName, Candidates.Title, Candidates.Address1, Candidates.Address3, Candidates.Address4, Candidates.PostCode, ProjectManagers.Name, ProcessCheck.AssessDateSent
FROM ProjectManagers INNER JOIN (Course INNER JOIN (Candidates INNER JOIN ProcessCheck ON Candidates.CandidatesID = ProcessCheck.CandidateID) ON Course.CourseID = Candidates.CourseID) ON ProjectManagers.ProjManagerID = Course.ProjManagerID
WHERE (((ProjectManagers.ProjManagerID)=[Please enter Project ManagerID]) AND ((ProcessCheck.AssessDateSent) Is Null));
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top