Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

This Recordset is not updateable error.

Status
Not open for further replies.

CGSB

Programmer
May 23, 2006
35
CA
My form uses the SQL statement below to populate itsfields:

Code:
SELECT course.course_name, candidate_course.status,   
       candidate_course.year, candidate_course.quarter, 
       candidate_course.file_no
FROM course LEFT JOIN candidate_course 
ON (course.course_id = candidate_course.course_id 
AND candidate_course.file_no = '77777')
WHERE course.set="1
ORDER BY course.course_name;

When I try to update one of the fields, a message appears saying "This Recordset is not updateable".

My question is, how can I change the above SQL statement so that it allows my Recordset to be updateable.
 
I don't completely understand. My query works fine when I take out the clause:
Code:
AND candidate_course.file_no = '77777'
But as soon as that clause is in there, it's not updateable anymore.

I think it's because it's a many-to-many query (I want many results from many tables).

Is there a different kind of SQL statement that I could use?
 
2 things - I suspect you need to make course_id on the course table a primAry key and then it will be updateable but also - surely the file_no=7777 should not be part of the JOIN but part of the WHERE clause as follows????

SELECT course.course_name, candidate_course.status, candidate_course.year, candidate_course.quarter, candidate_course.file_no
FROM candidate_course INNER JOIN course ON candidate_course.course_id = course.course_id
WHERE candidate_course.file_no="7777" AND course.set="1"
ORDER BY course.course_name;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top