By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,466 Members | 1,164 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,466 IT Pros & Developers. It's quick & easy.

Public (Global) variables

P: n/a
I capture the userid via a Login form and I need to use this userid for
other forms as well. How and where can I declare this variable
"strLoginID" such that its value can be used throughout the
application.

Regards,

Ninad.

Nov 13 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
You should declare it in the 'General' section of a module. You
probably have one module containing your utility functions etc. You can
use the same.

HTH

Sunil Korah

Nov 13 '05 #2

P: n/a
Ack! Don't build your own security system. There's a perfectly good one
built in to access. When the person logs in, you'll be able to get
their login with the built in function CurrentUser().

Jeremy

Ninad wrote:
I capture the userid via a Login form and I need to use this userid for other forms as well. How and where can I declare this variable
"strLoginID" such that its value can be used throughout the
application.

Regards,

Ninad.


Nov 13 '05 #3

P: n/a

Ninad wrote:
Thanks for pointing towards a good direction. Is there any reference
material on the web where I can learn how to use it. I am not familiar with Access security system and will need a lead. TIA.

Ninad.


MS has a white paper on it. Check their website.

Nov 13 '05 #4

P: n/a
Thanks for pointing towards a good direction. Is there any reference
material on the web where I can learn how to use it. I am not familiar
with Access security system and will need a lead. TIA.

Ninad.

Nov 13 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.