I have a combo box that displays an employee's job code (cboJobNumber), of which there are currently six (stored in the tblJobClass table). It used to display each of the six codes on drop down, but now that I have populated the underlying employee table (tblEmployeeData) to its full extent of 53, the combo box displays the job codes for all 53 employees, which is annoying. I've changed around my RowSource SQL statement time and again but still can't seem to fix this problem. Here's the SQL statement:
SELECT tblJobClass.jobNumber, tblJobClass.jobTitle, tblJobClass.salaryGrade
FROM tblJobClass LEFT JOIN tblEmployeeData ON tblJobClass.jobNumber = tblEmployeeData.jobNumber
ORDER BY tblJobClass.jobNumber;
I've tried a right join and inner join as well, but no luck. Is there something that I can add to the Criteria to eliminate repeating values?
Many thanks,
Andreas
SELECT tblJobClass.jobNumber, tblJobClass.jobTitle, tblJobClass.salaryGrade
FROM tblJobClass LEFT JOIN tblEmployeeData ON tblJobClass.jobNumber = tblEmployeeData.jobNumber
ORDER BY tblJobClass.jobNumber;
I've tried a right join and inner join as well, but no luck. Is there something that I can add to the Criteria to eliminate repeating values?
Many thanks,
Andreas