Type and Search Text Box

A

Anthony Bollinger

I have a form set up in tabular or table-like layout. Basically, it is a
list or scrolling view of the data. The data contains last names, and I
want to put an unbound text box at the top of the form and allow users to
type into that box and have Access search the initial part of the name that
matches what the user types.

I think I recall seeing an example or two of this online. Does anyone have
a suggestion?

Many thanks,
Tony
 
R

Rob Oldfield

You need to catch the on change event of the text box. In there, you can
grab the current text by using me.ctlName.text. With that... build an SQL
string that you can use as the row source of the list box (or the relevant
property of whatever control you're using to display the list)
 

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

Top