patkeaveney
Registered User.
- Local time
- Today, 18:46
- Joined
- Oct 12, 2005
- Messages
- 75
I have a main form and subform. based on a query.
The main form shows courses/schedules with the subform showing students based on this course/schedule combination.
The main form has 2 combo boxes.
1 select course name - (source, query on tblCourses)
2 select schedule - (source, query on tblschedules using CourseID as parameter)
Main form - frmCourseShedulesStudents
Sub Form - Classes Subform
tbl courses
pk courseID
tbl schedules
pk scheduleID
fk courseID
tblStudentsandCourses (link table)
pkstudentClassID
fk studentID
fk scheduleID
tbl Students
pk StudentID
At the moment the same student can be added to to subform more than once
How can i prevent this.
I have command buttons on subform to perform validation before record is added to the subform.
Thanks for any help
I have searched the forums but cant find a solution
Pat
The main form shows courses/schedules with the subform showing students based on this course/schedule combination.
The main form has 2 combo boxes.
1 select course name - (source, query on tblCourses)
2 select schedule - (source, query on tblschedules using CourseID as parameter)
Main form - frmCourseShedulesStudents
Sub Form - Classes Subform
tbl courses
pk courseID
tbl schedules
pk scheduleID
fk courseID
tblStudentsandCourses (link table)
pkstudentClassID
fk studentID
fk scheduleID
tbl Students
pk StudentID
At the moment the same student can be added to to subform more than once
How can i prevent this.
I have command buttons on subform to perform validation before record is added to the subform.
Thanks for any help
I have searched the forums but cant find a solution
Pat