Ace-training
New member
- Local time
- Yesterday, 18:49
- Joined
- Jul 14, 2004
- Messages
- 4
I am trying to list from a personnel database, the jobs which are vacant.
I have a personal, employment and termination tables linked (one-to-many) so I can keep historical data of employees job details and if they change jobs, keep track of where they are. Therefore, when they change jobs, their job becomes vacant until someone else fills that post. The job is held in the Establishment No. field within the employment table which gives info on the job title and location.
When a person leaves the job - they select a reason for termination and enter a termination date.
If there is no termination - they actually click on No Termination and no date is entered.
Therefore, to get a list of vacancies, I can pull out all those with no termination date against them.
But..... if someone else jumps into their job, it doesn't cross reference to the Establishment No. So I need a way of saying that if the [Start Date within current post] is later than the latest [Termination Date] and match it with [Establishment No] - I think I should get the list of vacancies. There are about 250 jobs available. Its the historical data which confuses me.
I hope I have explained that OK - please help.
I have a personal, employment and termination tables linked (one-to-many) so I can keep historical data of employees job details and if they change jobs, keep track of where they are. Therefore, when they change jobs, their job becomes vacant until someone else fills that post. The job is held in the Establishment No. field within the employment table which gives info on the job title and location.
When a person leaves the job - they select a reason for termination and enter a termination date.
If there is no termination - they actually click on No Termination and no date is entered.
Therefore, to get a list of vacancies, I can pull out all those with no termination date against them.
But..... if someone else jumps into their job, it doesn't cross reference to the Establishment No. So I need a way of saying that if the [Start Date within current post] is later than the latest [Termination Date] and match it with [Establishment No] - I think I should get the list of vacancies. There are about 250 jobs available. Its the historical data which confuses me.
I hope I have explained that OK - please help.