code to run on form

  • Thread starter Thread starter Simon
  • Start date Start date
S

Simon

I have a form that loads, if txtSrearch has some text in in when the
form loads i want it to run some code

I have tested the code on a Click button but sure how to get the code
to work once teh form loads

What command do i use to the code runs. as i have tried a few things
but done work, i think the code runs before txtSearch text is loaded
 
you haven't told us what the code is, what it's supposed to do, what you
tried that didn't work, and what happened in more detail than "didn't work".
having almost no information, i can only suggest you try using the form's
Load event, and failing that, try the form's Current event.

hth
 
Back
Top