Passing a PUBLIC var to a Query

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a Public var that I fill from a form. I want to use that public var in
my query (which fills a drop-down list on the same form). How do I do that?

Thanks!
 
You can create a global function that will return the variable, and you can
use this function in the query

Function MyFunctionName()
MyFunctionName = VariableName
End Function
 
That did it. Thanks a million!

Ofer said:
You can create a global function that will return the variable, and you can
use this function in the query

Function MyFunctionName()
MyFunctionName = VariableName
End Function
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top