Delete record in a join query

M

michael

Table tblClass Table tblStudent
-------------- ----------------
Class Student
ClassName StudentName

Table tblClassStudent
---------------------
Class
Student

Query qryClassStudent
---------------------
Class
Student
StudentName
From
Table tblClassStudent
inner join
Table tblStudent
on tblStudent.Student = tblClassStudent.Student

The reason for the query is to show the user the StudentName.

I delete a record in qryClassStudent and the query deletes the record in
tblStudent. Referential integrity is on but cascading update/delete is
off. Relationship is 1-1.

I want only to delete the link between Class and Student, not the
records in tblStudent.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top