R
Rolf Rosenquist
I have a form, FORM1 with a subform, FORM1Sub. When the user writes a
customers number in a field, CUSTno in FORM1, the customers different values
are updated in FORM1Sub. So far so good...
For the field CUSTno I have a After-Update event that opens a new smaller
form, FORM2 with a couple of different buttons. This is also working as
intended.
Now to my problem.... I want one of the buttons to fire automatically if a
certain flag in FORM1 is set. Simultanously should a VALUE, generated in
FORM1Sub be used in the new FORM2.
Because of some difficulties here, I made this VALUE as a global one. It
works almost.... but the value I get was the one for the previous customer.
With some different time loops I have understood that the VALUE, generated
in a function is not ready until after the FORM2 already is shown.
So I tried to open the FORM2 from the subform instead from the FORM1. That
also worked just almost... It seems that I can execute different commands,
but NOT open the FORM2 from inside the function.
Is that a law, or is there a way out?
/ Rolf
customers number in a field, CUSTno in FORM1, the customers different values
are updated in FORM1Sub. So far so good...
For the field CUSTno I have a After-Update event that opens a new smaller
form, FORM2 with a couple of different buttons. This is also working as
intended.
Now to my problem.... I want one of the buttons to fire automatically if a
certain flag in FORM1 is set. Simultanously should a VALUE, generated in
FORM1Sub be used in the new FORM2.
Because of some difficulties here, I made this VALUE as a global one. It
works almost.... but the value I get was the one for the previous customer.
With some different time loops I have understood that the VALUE, generated
in a function is not ready until after the FORM2 already is shown.
So I tried to open the FORM2 from the subform instead from the FORM1. That
also worked just almost... It seems that I can execute different commands,
but NOT open the FORM2 from inside the function.
Is that a law, or is there a way out?
/ Rolf