R
Ron
I've got an unbound text box, txtLatestDate on a main form intended to show
the latest date from a series of dates in a subform. Using comboboxes, the
subform shows a status and a date, several for each related record on the
main form. Using VBA, I use DMax to find the latest date and set
me.parent.txtLatestDate equal to it. It works, BUT I can't seem to get
txtLatestDate to refresh as soon as I change an existing date in the subform
(to a later value than any other). I've tried
me.parent.txtLatestDate = (DMax expression)
me.parent.requery
from several different events (onclick, dirty, afterupdate, etc.) But only
after picking the date twice does the refresh occur. How do I get it to
occur instantly?
And a corollary question. I notice that when I delete "event procedure"
from the control source property (in this case, a text box), the underlying
event code is still in the VBA. Does this mean that it is executing even
though there's no indication that it exists in the control event property?!?
Thanks, -Ron
the latest date from a series of dates in a subform. Using comboboxes, the
subform shows a status and a date, several for each related record on the
main form. Using VBA, I use DMax to find the latest date and set
me.parent.txtLatestDate equal to it. It works, BUT I can't seem to get
txtLatestDate to refresh as soon as I change an existing date in the subform
(to a later value than any other). I've tried
me.parent.txtLatestDate = (DMax expression)
me.parent.requery
from several different events (onclick, dirty, afterupdate, etc.) But only
after picking the date twice does the refresh occur. How do I get it to
occur instantly?
And a corollary question. I notice that when I delete "event procedure"
from the control source property (in this case, a text box), the underlying
event code is still in the VBA. Does this mean that it is executing even
though there's no indication that it exists in the control event property?!?
Thanks, -Ron