B
BJM
I have a problem with setting the criteria for a control
on a form used to collect parameters from an underlying
query which then opens a report.
A combobox control asks the teachers to specify a course
code and then populates another combobox with only those
students enrolled in the chosen course. The problem is a
course might have three or more sections (it's a long,
administrative story). The point is, when the teacher
selects a course code, it includes a section number
suffix, so only those students listed in that one section
appear in the list for the second control. Teachers know
what course a student is in, but not necessary what
section the office has them registered to.
Is there some way with an SQL statement, or a trim
function or both that I could have the original control
only see the first five characters of the course code and
then populate the second control with all the students in
all sections.
For example, we have a computer course whose code is
BTT20. With the sections added the course code becomes
BTT20-01 or BTT20-02, etc.
Thank you for any insight you might have,
BJM
on a form used to collect parameters from an underlying
query which then opens a report.
A combobox control asks the teachers to specify a course
code and then populates another combobox with only those
students enrolled in the chosen course. The problem is a
course might have three or more sections (it's a long,
administrative story). The point is, when the teacher
selects a course code, it includes a section number
suffix, so only those students listed in that one section
appear in the list for the second control. Teachers know
what course a student is in, but not necessary what
section the office has them registered to.
Is there some way with an SQL statement, or a trim
function or both that I could have the original control
only see the first five characters of the course code and
then populate the second control with all the students in
all sections.
For example, we have a computer course whose code is
BTT20. With the sections added the course code becomes
BTT20-01 or BTT20-02, etc.
Thank you for any insight you might have,
BJM