G
Guest
Harvesters has a program for teaching nutrition to kids. I record their
grades using two combo boxes on a form. I use "Me.class" to choose a class
among all classes. I use the second combo box to list students who attended
the class chosen in the first combo box. I have code in the Before Update
event that verifies that this result has not been recorded for this
class/student combination before. If in error, it returns an MsgBox error,
issues Me.undo and clears the screen for the next entry. One is then
expected to choose another student, another class or to exit the application.
When you choose another class, the list of students continues being those
from the previously chosen class. I use "Me.class" in the row source query
to find the list of students for "Me.student". It reacts as if the contents
of "Me.class" does not change in spite of being changed on the form.
The only ways around this I have found is to exit the application and enter
it again or to programatically close the application and reopen it, but the
latter causes the screen to blink annoyingly.
Is there some way to refresh "Me.class" for succeeding classes without
leaving the application?
EarlCPhillips
Ex-mainframer Learning Access To Make
Harvesters Feed The Hungry Efficiently
grades using two combo boxes on a form. I use "Me.class" to choose a class
among all classes. I use the second combo box to list students who attended
the class chosen in the first combo box. I have code in the Before Update
event that verifies that this result has not been recorded for this
class/student combination before. If in error, it returns an MsgBox error,
issues Me.undo and clears the screen for the next entry. One is then
expected to choose another student, another class or to exit the application.
When you choose another class, the list of students continues being those
from the previously chosen class. I use "Me.class" in the row source query
to find the list of students for "Me.student". It reacts as if the contents
of "Me.class" does not change in spite of being changed on the form.
The only ways around this I have found is to exit the application and enter
it again or to programatically close the application and reopen it, but the
latter causes the screen to blink annoyingly.
Is there some way to refresh "Me.class" for succeeding classes without
leaving the application?
EarlCPhillips
Ex-mainframer Learning Access To Make
Harvesters Feed The Hungry Efficiently