L
L-Ess
While I'm not entirely new to Access, I'm still near the
lower part on the learning curve.
My questions is - is there any way to set a Global
variable that persistent whereby any form can use its
current value. What I'm trying to do is have any one of
five forms where when opened, register its form name to
the global value and have a sixth form easily
differentiate (via the Global variable) which of the five
forms is currently opened. To clarify, if form#2 opens,
it sets the Global variable to the string
value "Form#2". Form #6 when opened queries the Global
value to see that Form#2 is currently active. When
Form#2 closes and Form#5 opens, then registration is
repeated and Form#6, when opened concurrently again
queries the Global variable to see that Form#5 is the
currently active form (of the five forms).
Hope this isn't confusing. Any help would be greatly
appreciated (I'd also guess there's a more classic way to
accomplish this - maybe via the application/active form
command or such).
Thanks!
lower part on the learning curve.
My questions is - is there any way to set a Global
variable that persistent whereby any form can use its
current value. What I'm trying to do is have any one of
five forms where when opened, register its form name to
the global value and have a sixth form easily
differentiate (via the Global variable) which of the five
forms is currently opened. To clarify, if form#2 opens,
it sets the Global variable to the string
value "Form#2". Form #6 when opened queries the Global
value to see that Form#2 is currently active. When
Form#2 closes and Form#5 opens, then registration is
repeated and Form#6, when opened concurrently again
queries the Global variable to see that Form#5 is the
currently active form (of the five forms).
Hope this isn't confusing. Any help would be greatly
appreciated (I'd also guess there's a more classic way to
accomplish this - maybe via the application/active form
command or such).
Thanks!