P
Paul
I'm about to complete a database for the internship coordinator of my
university, but one problem is still standing in my way. I hope
someone can tell me how to solve it.
I have a main form (frmOverview) with a subform (subfrmInternship). A
student's (the one selected) personal data is presented in the
mainform. Summary data of the internships that he/she did are
presented in the subform. Only the summary data of one internship is
shown, but within the subform it is possible to navigate between
certain internships the student did. Then there is a button (more
info) on the subform that opens a popup form (frmExtraInfo) with extra
information regarding the internship that is selected on the subform.
If I want the correct data to be displayed in frmExtraInfo I need to
apply a filter on load of frmExtraInfo, since different internships
can be selected within the subform.
I tried to do this by running an ApplyFilter macro OnLoad of
frmExtraInfo. The WHERE condition of the macro was set as follows:
[Internship_ID]=[Forms]![subfrmInternship]![Internship_ID]
This works perfectly if I open the subform separately and then click
the "more info" button. However when the subform is opened as part of
the mainform it doesn't work and I get a blank frmExtraInfo form.
Then I tried to specify the field [Internship_ID] in the subform as
follows:
[Internship_ID]=[Forms]![frmOverview].[subfrmInternship]![Internship_ID]
This time I get a popup box that indicates that this field does not
exist. As far as I understand, because the mainframe has the focus and
not the subform.
I hope I made my problem clear. Does someone know how this works?
Thanx
university, but one problem is still standing in my way. I hope
someone can tell me how to solve it.
I have a main form (frmOverview) with a subform (subfrmInternship). A
student's (the one selected) personal data is presented in the
mainform. Summary data of the internships that he/she did are
presented in the subform. Only the summary data of one internship is
shown, but within the subform it is possible to navigate between
certain internships the student did. Then there is a button (more
info) on the subform that opens a popup form (frmExtraInfo) with extra
information regarding the internship that is selected on the subform.
If I want the correct data to be displayed in frmExtraInfo I need to
apply a filter on load of frmExtraInfo, since different internships
can be selected within the subform.
I tried to do this by running an ApplyFilter macro OnLoad of
frmExtraInfo. The WHERE condition of the macro was set as follows:
[Internship_ID]=[Forms]![subfrmInternship]![Internship_ID]
This works perfectly if I open the subform separately and then click
the "more info" button. However when the subform is opened as part of
the mainform it doesn't work and I get a blank frmExtraInfo form.
Then I tried to specify the field [Internship_ID] in the subform as
follows:
[Internship_ID]=[Forms]![frmOverview].[subfrmInternship]![Internship_ID]
This time I get a popup box that indicates that this field does not
exist. As far as I understand, because the mainframe has the focus and
not the subform.
I hope I made my problem clear. Does someone know how this works?
Thanx