Reference a string??

  • Thread starter Thread starter Jeff Klein
  • Start date Start date
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?
 
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.
 
Back
Top