Append Completed Courses to another table

Dazzy

Registered User.
Local time
Today, 02:26
Joined
Jun 30, 2009
Messages
136
Hi Folks

I have created an append query to update completed courses to a previous education table.

INSERT INTO Education ( ID, [Qualification Name], [Level], [Date Achieved] )
SELECT Courses.ID, Courses.CourseName, Courses.CourseLevel, Courses.CertRecvDate
FROM Courses
WHERE (((Courses.CertRecvDate) Is Not Null) AND ((Courses.CourseCompleted)=True));

The theory here is if CourseCompleted checkbox is check and there is a value in CertRecvDate, the qualification has been achieved and therefore should be added to the previous education table (which will be used later for CV's etc)

The problem I face is I only want it to add any particular course once to the previous education table and not every time the query is executed. I am thinking I need to pass the CourseID field aswell to the education table and somehow check to see if that has been already added but have no idea how to go about this.

I have attached a screenshot showing the structure of the two tables.

Thanks for any help in advance.
 

Attachments

  • appendquery.PNG
    appendquery.PNG
    8.3 KB · Views: 82
Managed to solve this. Thanks all for looking.
 

Users who are viewing this thread

Back
Top Bottom