J
JNew
Greetings,
I am trying to create a structure that avoids nesting
subforms. In other words, the main form will display two
separate subforms, but subform(2) is the "many" side of a
relationship with subform(1). I'm having trouble getting
subform(2) to update/synchronize when I move through the
records in subform(1).
Main form:
Name = "CourseSecMain"
Primary key = "CourseID"
Subform(1) control name = "Sections"
Subform(2) control name = "Students"
Subform(1):
Form name = "CourseSecSub"
Primary key = "SectionID"
Links to main form using "CourseID"
Subform(2):
Form name = "CourseSecStudentsSub"
Composite PK = "SectionID" & "StudentID"
Link Master Field = "Forms![CourseSecMain]![Sections].Form!
[SectionID]
I have successfully created the subforms, and when I move
through records on the main form, subform(2) does update
itself to display the students in the FIRST section
displayed. It won't update itself when I click on a
different section.
In subform(1)'s OnCurrent event, I have added this code:
"Forms![CourseSecMain]![Students].Form.Requery" but it
doesn't do the trick.
Any guidance will certainly be appreciated.
jn
I am trying to create a structure that avoids nesting
subforms. In other words, the main form will display two
separate subforms, but subform(2) is the "many" side of a
relationship with subform(1). I'm having trouble getting
subform(2) to update/synchronize when I move through the
records in subform(1).
Main form:
Name = "CourseSecMain"
Primary key = "CourseID"
Subform(1) control name = "Sections"
Subform(2) control name = "Students"
Subform(1):
Form name = "CourseSecSub"
Primary key = "SectionID"
Links to main form using "CourseID"
Subform(2):
Form name = "CourseSecStudentsSub"
Composite PK = "SectionID" & "StudentID"
Link Master Field = "Forms![CourseSecMain]![Sections].Form!
[SectionID]
I have successfully created the subforms, and when I move
through records on the main form, subform(2) does update
itself to display the students in the FIRST section
displayed. It won't update itself when I click on a
different section.
In subform(1)'s OnCurrent event, I have added this code:
"Forms![CourseSecMain]![Students].Form.Requery" but it
doesn't do the trick.
Any guidance will certainly be appreciated.
jn