G
Gene
Hi and Happy New Year. I have modules that multiple
forms "call" for calculations. I am trying to take
information from one form, call up another form which
requires input and calculations, and after that input,
return to the original form and continue where the "call"
left off. The code goes something like this:
If vMissingData > 1 then goto AddData
AddData:
If MsgBox("You need Data", vbOKOnly) then
CALL AddMissingData(ID,StartDate)
GoToContinue
Endif
So if some data is missing, then I go to the label
AddData which informs the end user through a message box
that they have missing data. When they click OK, the
program calls a module with the arguments noted. That
module utilizes a standard ADD DATA form, which requires
input and clicking a command button and then the data is
appended to a table of data points. I then want to
return to the original form, go back to the point where
the missing data points were noted (labeled as
Continue: ), and then proceed.
After that long winded explanation, the problem is that
the first form won't wait for the "called" form to be
executed. It bounces back immediately and causes all
types of confusion.
So, is there anyway to call a second from from the
original, have the original form on hold until the second
form has its data entered and executed, and then return
to the original form to be completed? I would like to
avoid a subform, because I prefer having standardized
code that is usable by many forms. BUT, if that is the
only route, I will do it. Any suggestions?
Thanks.
Gene
forms "call" for calculations. I am trying to take
information from one form, call up another form which
requires input and calculations, and after that input,
return to the original form and continue where the "call"
left off. The code goes something like this:
If vMissingData > 1 then goto AddData
AddData:
If MsgBox("You need Data", vbOKOnly) then
CALL AddMissingData(ID,StartDate)
GoToContinue
Endif
So if some data is missing, then I go to the label
AddData which informs the end user through a message box
that they have missing data. When they click OK, the
program calls a module with the arguments noted. That
module utilizes a standard ADD DATA form, which requires
input and clicking a command button and then the data is
appended to a table of data points. I then want to
return to the original form, go back to the point where
the missing data points were noted (labeled as
Continue: ), and then proceed.
After that long winded explanation, the problem is that
the first form won't wait for the "called" form to be
executed. It bounces back immediately and causes all
types of confusion.
So, is there anyway to call a second from from the
original, have the original form on hold until the second
form has its data entered and executed, and then return
to the original form to be completed? I would like to
avoid a subform, because I prefer having standardized
code that is usable by many forms. BUT, if that is the
only route, I will do it. Any suggestions?
Thanks.
Gene