greysquirl
Programmer
I am using the following basically as a backup. It is triggered by a macro that is set to run on the "Before Update" of the "Position" text box. When a person changes positions the information about thier old job, date they
started etc. is dumped into another table for reference purposes.
The problem I am having is that when I go into the form and change one persons job position it dumps the entire contents of the table. . .every person; even though I am only changing one person. What should happen here
is when I change a persons position the information about that one person should be stored and only that one person.
INSERT INTO [Position Change] ( Position, DateChgd, Name, Department )
SELECT Review.Position, Review.[Position Start], Review.Name,
Review.[Department]
FROM Review;
Here is an example of what it is doing. . . .
On the first section there were just 4 names. When I went to the form to add the 5th name it assumed that I was changing the position box so it dumped the whole table. And in the 3rd section you will notice I changed
the last person's "Position" from "Clerk" to "Teacher" and it produced the same reaction. Again, what it should have done was only dump the information for the person changing positions, not the entire table.
Name Department Position DateChgd
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
John Maintenance Bus Driver 1/15/01
Dave MIS Computer Tech 3/15/00
Bobby MIS Supervisor 6/15/00
Henry MIS Support 3/15/01
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
John Maintenance Bus Driver 1/15/01
Dave MIS Computer Tech 3/15/00
Bobby MIS Supervisor 6/15/00
Henry MIS Support 3/15/01
John Admin Clerk 6/15/00
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
John Maintenance Bus Driver 1/15/01
Dave MIS Computer Tech 3/15/00
Bobby MIS Supervisor 6/15/00
Henry MIS Support 3/15/01
John Admin Teacher 6/15/00
started etc. is dumped into another table for reference purposes.
The problem I am having is that when I go into the form and change one persons job position it dumps the entire contents of the table. . .every person; even though I am only changing one person. What should happen here
is when I change a persons position the information about that one person should be stored and only that one person.
INSERT INTO [Position Change] ( Position, DateChgd, Name, Department )
SELECT Review.Position, Review.[Position Start], Review.Name,
Review.[Department]
FROM Review;
Here is an example of what it is doing. . . .
On the first section there were just 4 names. When I went to the form to add the 5th name it assumed that I was changing the position box so it dumped the whole table. And in the 3rd section you will notice I changed
the last person's "Position" from "Clerk" to "Teacher" and it produced the same reaction. Again, what it should have done was only dump the information for the person changing positions, not the entire table.
Name Department Position DateChgd
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
John Maintenance Bus Driver 1/15/01
Dave MIS Computer Tech 3/15/00
Bobby MIS Supervisor 6/15/00
Henry MIS Support 3/15/01
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
John Maintenance Bus Driver 1/15/01
Dave MIS Computer Tech 3/15/00
Bobby MIS Supervisor 6/15/00
Henry MIS Support 3/15/01
John Admin Clerk 6/15/00
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
John Maintenance Bus Driver 1/15/01
Dave MIS Computer Tech 3/15/00
Bobby MIS Supervisor 6/15/00
Henry MIS Support 3/15/01
John Admin Teacher 6/15/00