Reference a string??

J

Jeff Klein

Can I reference a public string in a query? I have a query that references
a textbox on a form, but I want to use the query on other forms also. Can I
change the form reference to a public string? This way I could set the
string value and then run the query within any form. If so...How?
 
D

Douglas J. Steele

You can't reference public variables in queries (assuming that's what you're
talking about), but you can create a function that returns the value of the
public variable and use that in your query.
 
Top