For how long access keeps a declared variable value?

arkadis

Registered User.
Local time
Today, 15:15
Joined
Dec 3, 2015
Messages
16
If i have a variable in a module "Public UserID As Long"
and i declarer it through login form @ startup UserID = Me.UserID.

Will Access keep this value during all session until i close the db?

If i understand correctly..

1) If i declare it in a MODULE then i can use it during all session until i close the db.
2) If i declare it in a FORM then i can use it until i close the form.

Am i rite?

Thanks!
 
you are correct.
 
until i close the db.
or the code is stopped - e.g. through an unhandled error
 

Users who are viewing this thread

Back
Top Bottom