Back up

G

Guest

I have a table that lists employee names, employee ID,
Badge numbers and other info on the employee. This table
is used in multiple queries. When employees leave they
are deleted from the table. We ran into a small problem
that we actually need to have a seperate table that lists
any employee that has worked in our department wether
currently employed or not. Is there a way that when one
table is updated with new information that it
automatically updates in a second table but when
information is deleted from the first that it not be
deleted from the second table??

Any ideas??
 
T

Tim Ward

I have a table that lists employee names, employee ID,
Badge numbers and other info on the employee. This table
is used in multiple queries. When employees leave they
are deleted from the table. We ran into a small problem
that we actually need to have a seperate table that lists
any employee that has worked in our department wether
currently employed or not. Is there a way that when one
table is updated with new information that it
automatically updates in a second table but when
information is deleted from the first that it not be
deleted from the second table??

Any ideas??

Deleting the records from the table is probably wrong - it might be better
to set a flag saying "this guy has left" and use this as a filter when doing
queries that only want to see current employees. Why do you think you want a
different table?
 
G

Guest

I need a different table because I need to link the
employee information of current and past employees in
queries. We still need the origional table for other
queries.

Thank You
 
J

John Vinson

I need a different table because I need to link the
employee information of current and past employees in
queries. We still need the origional table for other
queries.

So?

You can link to either current or past employees, and create your
other queries, if you have both sets of employees in the same table.
Just add a Yes/No field CurrentEmployee; set it to No when an employee
leaves; and use a criterion of True if your query should show only
current employees, False to show only former employees, and no
criterion at all if you want to see everyone.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top