If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Back up
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?? |
#2
|
|||
|
|||
Back up
wrote in message
... 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? -- Tim Ward Brett Ward Limited - www.brettward.co.uk |
#3
|
|||
|
|||
Back up
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 -----Original Message----- wrote in message ... 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? -- Tim Ward Brett Ward Limited - www.brettward.co.uk . |
#4
|
|||
|
|||
Back up
On Wed, 28 Apr 2004 09:13:45 -0700,
wrote: 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. John W. Vinson[MVP] Come for live chats every Tuesday and Thursday http://go.compuserve.com/msdevapps?loc=us&access=public |
#5
|
|||
|
|||
Back up
This is not possible in Access.
-----Original Message----- 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?? . |
Thread Tools | |
Display Modes | |
|
|