Variables suddenly lose their set values
Posted on 2011-09-16
Why would variables suddenly lose their values when form loads? I have a variable that I set to 'true' when the form loads... and I check it at different stages using a message box. It remains 'true' all the way through the code. The variable is then used in the after_update of a textbox... when I put a value in the textbox, the variable is gone... somehow it is getting wiped and I can't figure out why... other ones (global) that are either set on previous forms also disappear. This was all working up until yesterday...so it has to be something I did yesterday, but I am at a loss as to what it could be.
Are there any certain things I should check that might cause variables to lose their values suddenly?