M
MikeB
I'm trying to display in the header of a form a name derived from the
"parents" of the form at higher level.
I have Courses, then Sections, then a Roster for each Section.
On the Roster form I'd like to display the Course Name and the Section
Number in the header.
This gives me the section number:
=DLookUp("[SectionNo]","[tblSections]","[SectionID] = " & [Forms]!
[CourseSections Subform]![SectionID])
How can I lookup and use the fk_CourseID in tblSections and use that
as the criteria to lookup the Course name in Courses?
THe only way I can think of is to create a hidden field in the header,
use DLookup to store the fk_CourseID in there and then use another
DLookup to use that value, but I'm not sure that is the right and or
elegant way to do it.
Thanks.
"parents" of the form at higher level.
I have Courses, then Sections, then a Roster for each Section.
On the Roster form I'd like to display the Course Name and the Section
Number in the header.
This gives me the section number:
=DLookUp("[SectionNo]","[tblSections]","[SectionID] = " & [Forms]!
[CourseSections Subform]![SectionID])
How can I lookup and use the fk_CourseID in tblSections and use that
as the criteria to lookup the Course name in Courses?
THe only way I can think of is to create a hidden field in the header,
use DLookup to store the fk_CourseID in there and then use another
DLookup to use that value, but I'm not sure that is the right and or
elegant way to do it.
Thanks.