Austin
09-12-2008, 03:09 PM
Okay this seems like it should be easy but I can't figure it out.
I have a fortm that lets the user select a university then it uses a sync'd combo box to select the academic area(math, business, etc).
I want the users to be able to edit the course data but when they select a institution thats not associated with that class it lets me enter that data. It's causing the data in my institutions table to get messed up.
How do I lock it where if the class doesn't exist for the specific institution then it won't let you save the form.
I know this is the most complicated description but it's all I have.
Maybe this will help
Three tables affected are
History_Course_Lines
-Student_ID
-Semester
-Grade
-ClassID <--this is the problem child
Classes
-ClassID
-Acad_Discipline
-Hours
-InstitutionID
-Course_Number
Institutions
-InstitutionID
-Institution(name)
-School_type
The form that lets you add courses is a subform for the main student_id form.
The subform lets you select first Institution -> Course -> Course Number
This works great if I just bind course_number to ClassID in the History_Course_Lines table, but if I want people to be able to edit the other two fields then I bind them to the respective fields Acad_Discipline and Institution then it starts messing up my tables, it'll let you go back in and go to records and change stuff that shouldnt' be possible. Such as putting a class with a institution that doesn't exist. Say Institution 2 doesn't have class 3, well it lets you do this and then renames the institution.
Totally messed up but I can't figure out how to lock it down.
I have a fortm that lets the user select a university then it uses a sync'd combo box to select the academic area(math, business, etc).
I want the users to be able to edit the course data but when they select a institution thats not associated with that class it lets me enter that data. It's causing the data in my institutions table to get messed up.
How do I lock it where if the class doesn't exist for the specific institution then it won't let you save the form.
I know this is the most complicated description but it's all I have.
Maybe this will help
Three tables affected are
History_Course_Lines
-Student_ID
-Semester
-Grade
-ClassID <--this is the problem child
Classes
-ClassID
-Acad_Discipline
-Hours
-InstitutionID
-Course_Number
Institutions
-InstitutionID
-Institution(name)
-School_type
The form that lets you add courses is a subform for the main student_id form.
The subform lets you select first Institution -> Course -> Course Number
This works great if I just bind course_number to ClassID in the History_Course_Lines table, but if I want people to be able to edit the other two fields then I bind them to the respective fields Acad_Discipline and Institution then it starts messing up my tables, it'll let you go back in and go to records and change stuff that shouldnt' be possible. Such as putting a class with a institution that doesn't exist. Say Institution 2 doesn't have class 3, well it lets you do this and then renames the institution.
Totally messed up but I can't figure out how to lock it down.