AJ IT Student
Registered User.
- Local time
- Today, 18:00
- Joined
- May 8, 2002
- Messages
- 36
Ok, sorry to post another question - i'm sure you're sick of me.
Anyhow I'm gonna try my luck.
I haven't been able to find something relevant in the help files (that I can understand/adapt!).
I have a table called 'Location' in my database.
This has a list of locations (defined by a primary key) where employees can work. Basically different offices.
Each employee is assigned to an office. Each office has a maximum capacity...
So if you see what I'm getting at, I need some way of searching to find how many Employees (employeeid) there are for each LocationID.
So it might be best to search within the 'Location' table.
I can't work out how to do it (i've been staying up and am very tired - running on red bull
).
Basically I think I gotta Select EmployeeID and count how many records match for each different location. i.e. i may find 21 employees are assigned to LocationID - 2, and the limit is 30.
I'd then somehow sort out a message box if there were over 30 employees assigned to this particular office - saying that it is overpopulated.
Can anyone help me with this?
Many thanks.
aj
Anyhow I'm gonna try my luck.
I haven't been able to find something relevant in the help files (that I can understand/adapt!).
I have a table called 'Location' in my database.
This has a list of locations (defined by a primary key) where employees can work. Basically different offices.
Each employee is assigned to an office. Each office has a maximum capacity...
So if you see what I'm getting at, I need some way of searching to find how many Employees (employeeid) there are for each LocationID.
So it might be best to search within the 'Location' table.
I can't work out how to do it (i've been staying up and am very tired - running on red bull

Basically I think I gotta Select EmployeeID and count how many records match for each different location. i.e. i may find 21 employees are assigned to LocationID - 2, and the limit is 30.
I'd then somehow sort out a message box if there were over 30 employees assigned to this particular office - saying that it is overpopulated.
Can anyone help me with this?
Many thanks.
aj