J
John Keith
I am using a pop-up calendar form that is called from my main form.
GotFocus and MouseDown events on the main form are calling the popup
calendar. Once a day has been selected the last thing that happens is the
originating control (the date field on my main form) is being set to the
value of the date selected. This method does not fire the Change,
BeforeUpdate, nor AfterUpdate events.
I have looked at RaiseEvent, but the statement that is setting the value of
the originating control is in calendar form module not the main form module.
I also tried putting the onupdate code in a seperate module that is called
from the calendar form right after the control fields value is set. The Me.
object was not available (perhaps there is a way to assign the current
database to a variable in that module?)
What are the suggested ways to cause the on-change code to execute from a
form class module that is outside the main form?
GotFocus and MouseDown events on the main form are calling the popup
calendar. Once a day has been selected the last thing that happens is the
originating control (the date field on my main form) is being set to the
value of the date selected. This method does not fire the Change,
BeforeUpdate, nor AfterUpdate events.
I have looked at RaiseEvent, but the statement that is setting the value of
the originating control is in calendar form module not the main form module.
I also tried putting the onupdate code in a seperate module that is called
from the calendar form right after the control fields value is set. The Me.
object was not available (perhaps there is a way to assign the current
database to a variable in that module?)
What are the suggested ways to cause the on-change code to execute from a
form class module that is outside the main form?