I am getting the following error when I try and delete a record from a table called Course from a windows form;
"DELETE statement conflicted with COLUMN REFERENCE constraint 'FK_tbl_CourseCategory_tbl_Courses'. The conflict occurred in database 'cams', table 'tbl_CourseCategory', column 'CourseID'.
The statement has been terminated."
The table Courses has a foreign key in the table Categories which has a foreign key in the table Competencies.
WHen I click the delete button for the Courses Datagrid all the course is deleted as are the records on the screen in the Categories datagrid and the Competencies datagrid but when I click save I get the above error
"DELETE statement conflicted with COLUMN REFERENCE constraint 'FK_tbl_CourseCategory_tbl_Courses'. The conflict occurred in database 'cams', table 'tbl_CourseCategory', column 'CourseID'.
The statement has been terminated."
The table Courses has a foreign key in the table Categories which has a foreign key in the table Competencies.
WHen I click the delete button for the Courses Datagrid all the course is deleted as are the records on the screen in the Categories datagrid and the Competencies datagrid but when I click save I get the above error