Retain string for further use

  • Thread starter Thread starter Craig Ferrier
  • Start date Start date
C

Craig Ferrier

I have a form which compiles an sql query when entering data into a form - a
public function "RunFilter()". It creates a string "strw". I want to use
this string for another event "after update" event on a option box in the
same form.

if the string length is > 0 then I want to it to run the public function
"RunFilter()"

How do i do this?

Craig
 
Why not have the function return the string as the function value?
So, in the function, you will put RunFilter = strw
and in your form, you can use: mystring = runfilter()

Another option is to make strw a global (public) variable.

Hope this helps

John
 

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