Hi,
Don't know if this is even possible but someone out there might be able to tell me otherwise.
I have a table with a list of names, lets call it TBEmployees. I use this table to list all employees in a combobox.
The Employees are linked to another table, lets call it something like TBSite. Employees can work in many different sites lots of times, therefore they can appear in TBSite many times. TBSite has a field called AreaID, where a number is used to represent the Area.
Is it possible for the combobox mentioned above to list not only the Employees but also the number of times their name shows up in TBSite with a certain AreaID?
So essentially the combobox will list each employee plus it will sow the number of times that Employee has worked at a particular Area.
Is this even possible?
Any help would be great.
EDIT:
I'm guessing that the comobox would need an expression something like:
DCount(["EmployeeID]","[TBSite]","[AreaID] = 2 And [EmployeeID] = " & ????? )
Where ??? is the EmployeeID in the combobox or rather the record in the recordsource for the combobox
Don't know if this is even possible but someone out there might be able to tell me otherwise.
I have a table with a list of names, lets call it TBEmployees. I use this table to list all employees in a combobox.
The Employees are linked to another table, lets call it something like TBSite. Employees can work in many different sites lots of times, therefore they can appear in TBSite many times. TBSite has a field called AreaID, where a number is used to represent the Area.
Is it possible for the combobox mentioned above to list not only the Employees but also the number of times their name shows up in TBSite with a certain AreaID?
So essentially the combobox will list each employee plus it will sow the number of times that Employee has worked at a particular Area.
Is this even possible?
Any help would be great.
EDIT:
I'm guessing that the comobox would need an expression something like:
DCount(["EmployeeID]","[TBSite]","[AreaID] = 2 And [EmployeeID] = " & ????? )
Where ??? is the EmployeeID in the combobox or rather the record in the recordsource for the combobox
Comment