Good day all!
I am hoping someone can help me out with the following problem I can't seem to resolve. I am using Access 2016 where I have a form with a combobox that contains all of the jobs in our plant as it's Row source. The table, Jobs, contains the following fields: JobID, JobName and AreaID. I also have a table which connects Employees to the jobs they can do: EmplToJob. This table contains The EmployeeID and JobID as its two fields. So my full RowSource for the combobox is:
Now each employee is assigned to one AreaID as their "home" group but some employees may be able to perform jobs in other areas. So I created a table where I could list all of the employees and the other areas that they are trained for jobs in: EmplAltArea which contains the EmployeeID and AreaID fields.
So, now I want the combo box, above, to be able to display all of the jobs for all of the areas that an Employee is certified to perform jobs in. I thought I could use a Multi-Select (set to simple) list box as criteria for my combobox and changed my row source, above, as follows:
but I just get blanks in my combobox... can anyone point me in the right direction or select a better option? Thank you. :banghead:
I am hoping someone can help me out with the following problem I can't seem to resolve. I am using Access 2016 where I have a form with a combobox that contains all of the jobs in our plant as it's Row source. The table, Jobs, contains the following fields: JobID, JobName and AreaID. I also have a table which connects Employees to the jobs they can do: EmplToJob. This table contains The EmployeeID and JobID as its two fields. So my full RowSource for the combobox is:
Code:
SELECT Jobs.JobID, Jobs.JobName, Jobs.AreaID
FROM Process INNER JOIN EmplToJob ON Jobs.JobID = EmplToJob.JobID
GROUP BY Jobs.JobID, Jobs.JobName, Job.AreaID;
Now each employee is assigned to one AreaID as their "home" group but some employees may be able to perform jobs in other areas. So I created a table where I could list all of the employees and the other areas that they are trained for jobs in: EmplAltArea which contains the EmployeeID and AreaID fields.
So, now I want the combo box, above, to be able to display all of the jobs for all of the areas that an Employee is certified to perform jobs in. I thought I could use a Multi-Select (set to simple) list box as criteria for my combobox and changed my row source, above, as follows:
Code:
SELECT Jobs.JobID, Jobs.JobName, Jobs.AreaID
FROM Process INNER JOIN EmplToJob ON Jobs.JobID = EmplToJob.JobID
WHERE (((Jobs.AreaID) In ([Forms]![frmEmplToJob]![lstAltArea])))
GROUP BY Jobs.JobID, Jobs.JobName, Job.AreaID;
but I just get blanks in my combobox... can anyone point me in the right direction or select a better option? Thank you. :banghead: