There can be more than one subjects in a course. After filling the form, and saving first subject in a course a popup dialog box open asking if there are anymore subjects to capture, if yes, group box for subjects must be cleared to allow for another entry
Case is, with the code i have this can happen only if i did not set a primary key, and if i do, it makes duplicate error message