Hi, everyone... I've got another problem...
I've created a query to try to generate a report, but it's giving me some duplicate results. It doesn't duplicate every result, just some of them...
Here's my sql:
SELECT qryApplication.AnnouncementNo, [qryApplicant].[LastName] & ", " & [qryApplicant].[FrstName] AS ApplicantLstFrst, qryApplication.applicant, [PositionTitle] & ", " & [PositionNo] AS Position, qryApplication.Office, qryApplication.CertifyID, qryApplication.TestDate, qryApplication.TestScore
FROM qryApplicant INNER JOIN qryApplication ON qryApplicant.ApplicationID = qryApplication.ApplicationID
WHERE (((qryApplication.AnnouncementNo)=[forms]![frmRegister]![lstPosting]) AND ((qryApplication.CertifyID)=1));
I've taken two already made queries (qryApplication and qryApplicant) and joined them by ApplicationID. Each time an applicant applies for a position, a new record joining a new application with an existing posting is created in tblJunction... The only thing I can find in my test data that the duplicate results have in common is a common Posting. (Meaning, the people who are duplicated applied to the same positions. The positions with only one applicant show up alone.)
Yeah, it's been a long week (even though we had Monday off...) Difficult to think now. Anyway, any insights would be appreciated, but I'll keep hammering away at trying to figure it out in the meanwhile.
Thanks in advance. Again.
--Sara
I've created a query to try to generate a report, but it's giving me some duplicate results. It doesn't duplicate every result, just some of them...
Here's my sql:
SELECT qryApplication.AnnouncementNo, [qryApplicant].[LastName] & ", " & [qryApplicant].[FrstName] AS ApplicantLstFrst, qryApplication.applicant, [PositionTitle] & ", " & [PositionNo] AS Position, qryApplication.Office, qryApplication.CertifyID, qryApplication.TestDate, qryApplication.TestScore
FROM qryApplicant INNER JOIN qryApplication ON qryApplicant.ApplicationID = qryApplication.ApplicationID
WHERE (((qryApplication.AnnouncementNo)=[forms]![frmRegister]![lstPosting]) AND ((qryApplication.CertifyID)=1));
I've taken two already made queries (qryApplication and qryApplicant) and joined them by ApplicationID. Each time an applicant applies for a position, a new record joining a new application with an existing posting is created in tblJunction... The only thing I can find in my test data that the duplicate results have in common is a common Posting. (Meaning, the people who are duplicated applied to the same positions. The positions with only one applicant show up alone.)
Yeah, it's been a long week (even though we had Monday off...) Difficult to think now. Anyway, any insights would be appreciated, but I'll keep hammering away at trying to figure it out in the meanwhile.
Thanks in advance. Again.
--Sara