Hi All
I have a form (Access 03) that calculates some statistics in the OnOpen event that can take a long time for large files. I would like to give users the choice of not running these calculations. If the file is over 1 meg a modal popup form with two buttons opens and sets a variable based on which button the user selects. The variable is declared as public in the original form but is not available in the second form.
Restated:
Form A has the line:
Public intOptTyp as integer
In the OnOpen event of form A, form B is opened and tries to assign a value to intOptTyp but it errors out with the message "variable not defined". (Each module has an Option Explicit statement, of course)
Gosh, this seems so easy! Is it obvious where I went wrong?
Thanks,
alr
_____________________________________
If a large part of intelligence is the ability to generalize, it is ironic that a large part of what we call wisdom is the ability not to generalize.