
Application.Quit statement resets Variables?
Where did u declare that global var?
Public vars should be declared in standard modules only.
--
HTH/EQTA
'-'_'-'_'-'_'-'_'-'_'-'_'-'_'-'_'-'_'-'_'-'_'-'_'-'_'-'_'-'
Mario Osorio (Hot Budare)
'-'_'-'_'-'_'-'_'-'_'-'_'-'_'-'_'-'_'-'_'-'_'-'_'-'_'-'_'-'
===============================
You'll find good answer to common and not so
common questions at Dev Ashish's page:
http://www.mvps.org/access
En la pgina de Dev Ashish, indicada arriba,
Ud. encontrar buenas respuestas
a preguntas comunes y no tan comunes.
===============================
: Dev,
:
: The code that gets executed is sat on the Close event of a couple of
forms.
: To stop this code from executing I was using a global var to indicate that
: the system was closing down but this appeared to be getting reset by the
: Application.Quit. In the end I used a Database Property to hold the
value.
:
: Cheers Susan
:
: > Susan,
: >
: > Typically, you shouldn't have any lines of code executing after you
: issue
: > Application.Quit. What are you trying to do after the app terminates?
: >
: > -- Dev
: >
: > >When Access hits the Application.Quit statement in code does it reset
all
: > >variables at that point? I was having a few problems with some code
that
: > >would suggest it does. deadlines being as they are I managed a quick
: > >workaround to the problem, but would appreciate a definite answer if
: anyone
: > >out there has come across this before.
: > >
: > >thanks in advance
: > >
: > >Susan
: > >
: > >
: >
: >
:
: