Global variable seems missing

  • Thread starter Thread starter Rolf Rosenquist
  • Start date Start date
R

Rolf Rosenquist

In a module I have defined a global variable. In the code of one form I have
set a value to this variable. In another form, that should use this value, I
find nothing.

Trying to find out why, I make a stop after the value is set and in the
direct window I can confirm that the value is OK. Stepping through the code
until I get into the next form, the value is missing for this variable. And
the direct window says that the value now is set to Null.

Is a global variable not readable from all forms?


/ Rolf
 
Its value can sometimes be lost if you are stepping through code and break
out of the routine. Something that may help, in the code editor go to
Tools|Options|General tab and check the box "Notify Before State loss".
 
AUTO-REPLY From George Levitt

Please allow this to confirm a system receipt of your e-mail.

I am out of the office until Wednesday morning (1/12/05) and will not be
reviewing or responding to email or voicemail until that time.

I look forward to replying to your message on Wednesday.

Thanks and warmest regards, George
 
AUTO-REPLY From George Levitt

Please allow this to confirm a system receipt of your e-mail.

I am out of the office until Wednesday morning (1/12/05) and will not be
reviewing or responding to email or voicemail until that time.

I look forward to replying to your message on Wednesday.

Thanks and warmest regards, George
 
Back
Top