Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Are module and public level variables members of any collection

Status
Not open for further replies.

SBendBuckeye

Programmer
May 22, 2002
2,166
US
I have a series of public variables (primarykey as an example) which I load from tag properties. I want to ensure that I don't accidently have 2 fields defined as primary keys. During the form load event, I would like to selectively clear some of the public variables before setting them up in the current code to make error checking like the above for primary key safer.

Any ideas or suggestions would be welcome!
 
You make reference to tag properties... Is this question reguarding a web site/page, or an access database?? This forum is for access database's (even though the people on here are great and can help with much more then that)...

If this is for an access database, include what vertion of access you are using, I think that will be needed for help with the question...

--James
junior1544@jmjpc.net
Life is change. To deny change is to deny life.
 
There is a modules collection. I am not aware of any structure in Ms. A. (or VB) which includes all public / global variables. Scope and persistance rules generally maintain seperation of variables, but they do not prevent the multiple use of a variable name. They (scope and persistance rules) do prevent global names from being re-used in context.

You should review the rules.

MichaelRed
m.red@att.net

There is never time to do it right but there is always time to do it over
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top