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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Use of public variables

Status
Not open for further replies.

stonewal

Technical User
Sep 26, 2000
17
0
0
US
I have declared a public variable CurrentName in a class module named PubVars. I thought I could use this variable anywhere such as a criteria in a filter or a query but all I get is an "enter parameter value" common dialog box. I am referencing my public variable
[PubVars].[CurrentName]

I am really stumped. Any suggestions?
 
I think (therfore I am {not sure?}).

Oh well, the syntax is more than expected/required. Just use the name part of the var "CurrentName" (no brackets, no module name, and no dot operator)

[sig]<p>MichaelRed<br><a href=mailto:mred@duvallgroup.com>mred@duvallgroup.com</a><br>There is never time to do it right but there is always time to do it over[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top