Quote Originally Posted by suresh
Hi DRJ,
Thanks somuch for quick response.
I just did that and I am getting the error "Invalid use of Me Key word.
text = Me.SearchTextBox.text
any idea to rectify this bug?

Thanks,
Suresh.
Me is invalid because the code is no longer on the form. Substitute the form name in place of Me

[VBA]
text = SearchForm.SearchTextBox.text
[/VBA]