T
Timothy via AccessMonster.com
I have a table of agent moves & other HR related transactions in the company
(transfers, promotions, demotions etc.) in Access 2003. I need to somehow
reference a move, say a promotion, and pull the data from the previous record.
I need to show where the agent was promoted from, (department, supervisor,
position, etc.). There are certain instances that I may not want to track
(pay changes, leave of abscence, etc), but I may still need to pull data from
that record as it may have a promotion after it, so I would need to reference
it's department, sup and what not. So an agent may have 6 records in a year,
(2 pay changes, 1 transfer, 1 out on leave, 1 return from leave, and 1
promotion for instance). In this instance I would only need to report on the
transfer and the promotion. The transfer an promition record only have the
new agents data on it. New position, new department etc. I need to note the
two transactions, but attach the previous records data to it. I have
personnelID and Date of transaction (a personnelID will never have more than
one transaction on a given date)
I went in to this thinking it would be fairly simple... I started with
queries, but could not make anything work for every instance. I am sure
there is some bit of VBA out there that can do this, but I have been unable
to make anything I have come across in the forums get the results I need.
Any help would be greatly appreciated.
Thanks,
Tim
(transfers, promotions, demotions etc.) in Access 2003. I need to somehow
reference a move, say a promotion, and pull the data from the previous record.
I need to show where the agent was promoted from, (department, supervisor,
position, etc.). There are certain instances that I may not want to track
(pay changes, leave of abscence, etc), but I may still need to pull data from
that record as it may have a promotion after it, so I would need to reference
it's department, sup and what not. So an agent may have 6 records in a year,
(2 pay changes, 1 transfer, 1 out on leave, 1 return from leave, and 1
promotion for instance). In this instance I would only need to report on the
transfer and the promotion. The transfer an promition record only have the
new agents data on it. New position, new department etc. I need to note the
two transactions, but attach the previous records data to it. I have
personnelID and Date of transaction (a personnelID will never have more than
one transaction on a given date)
I went in to this thinking it would be fairly simple... I started with
queries, but could not make anything work for every instance. I am sure
there is some bit of VBA out there that can do this, but I have been unable
to make anything I have come across in the forums get the results I need.
Any help would be greatly appreciated.
Thanks,
Tim