Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Bounded Text box with Find capabilites

Bounded Text box with Find capabilites

Bounded Text box with Find capabilites

How can I make a bounded text box, able to act as a searchable string. (e.g. I have a text box that displays a test name, I would like to be able to enter a new test name and <ENTER> to search for the next occurrence of matching characters, without adding a find button from the tool bar)

RE: Bounded Text box with Find capabilites

If your text box is bound to a field, I don't see how you would do it.  (Of course, at 7:50 am there's a lot I don't see!)

If however, you create a text box that is unbound, you can write code, maybe in the AfterUpdate event, to do your searching for you.

Does that sound like what you want to do?


RE: Bounded Text box with Find capabilites

I gotta go with Kathryn on this one. If your text box is bound, all you will be doing by entering search criteria in the text box is changing the value of the field it is bound to in the table.

If you want to have a searchable form, have an UNBOUND text box for your criteria. Then after update of the field you can:

1) Create a dynamic SQL string based on your criteria,
2) Set your forms Record Source to that string, and
3) Refresh your form.

This is just one way that I like to use, I am sure others may have some methods they prefer. If you need help with the SQL statement, let us know.

Jim Lunde
Custom Application Development

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close