X
XP
For example, consider the following:
DoCmd.OpenForm "frmCalendar"
Forms("frmCheckEntry").Controls(gcsControlRunDate).Caption = gdCalendarDate
The above code is in a Form class module. Both lines of this code run
immediately when called. What I would like to do is have the first line of
code fire, and open the form; but I want the code to pause until the form is
closed, then and only then, run the second line of code. --Because the
variable gdCalendarDate is not populated until the calendar form is clicked
(and closed).
What I am really trying to accomplish is to reuse a generic calendar form
without having to create eight separate calendar forms that are identical
except for the underlying code that does something based upon the calling
routine, if that makes sense.
If you understand this post (or need clarification) and have an idea, please
post a response. Thanks.
DoCmd.OpenForm "frmCalendar"
Forms("frmCheckEntry").Controls(gcsControlRunDate).Caption = gdCalendarDate
The above code is in a Form class module. Both lines of this code run
immediately when called. What I would like to do is have the first line of
code fire, and open the form; but I want the code to pause until the form is
closed, then and only then, run the second line of code. --Because the
variable gdCalendarDate is not populated until the calendar form is clicked
(and closed).
What I am really trying to accomplish is to reuse a generic calendar form
without having to create eight separate calendar forms that are identical
except for the underlying code that does something based upon the calling
routine, if that makes sense.
If you understand this post (or need clarification) and have an idea, please
post a response. Thanks.