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.
 

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