H
HeatherBee
I have a database with several peripheral tables that
relate back to a main 'Volunteers' table. I would like
to update one these peripheral tables based on criteria
from the 'Volunteers' table. Rather than update existing
records based, however, I need new records to be created
in the peripheral table based on the Volunteers table
(and excluding any VolID's who already have a record of
that name).
Currently, I can only get the query to update records
already in the Training Table, not add new ones. I am a
relatively new user, so I am doing this through
the 'design view' rather than 'SQL'. That said,
the 'SQL' generated through my efforts is:
UPDATE Volunteers LEFT JOIN VolTraining ON
Volunteers.VolID = VolTraining.VolID SET
VolTraining.Description = "Volunteer Reception",
VolTraining.InvitationSent = Yes
WHERE (((VolTraining.Description)<>"Orientation" And
(VolTraining.Description)<>"Volunteer Reception") AND
((Volunteers.RegistrationReceived)=Yes));
Any advice that anyone could give would be greatly
appreciated!
Heather
relate back to a main 'Volunteers' table. I would like
to update one these peripheral tables based on criteria
from the 'Volunteers' table. Rather than update existing
records based, however, I need new records to be created
in the peripheral table based on the Volunteers table
(and excluding any VolID's who already have a record of
that name).
Currently, I can only get the query to update records
already in the Training Table, not add new ones. I am a
relatively new user, so I am doing this through
the 'design view' rather than 'SQL'. That said,
the 'SQL' generated through my efforts is:
UPDATE Volunteers LEFT JOIN VolTraining ON
Volunteers.VolID = VolTraining.VolID SET
VolTraining.Description = "Volunteer Reception",
VolTraining.InvitationSent = Yes
WHERE (((VolTraining.Description)<>"Orientation" And
(VolTraining.Description)<>"Volunteer Reception") AND
((Volunteers.RegistrationReceived)=Yes));
Any advice that anyone could give would be greatly
appreciated!
Heather