search first letter

S

Sibes

I have created an employee database and would like it to run even better.

I would like to have the letters of the alphabet on the side and when the
user clicks on a letter, only those people in the database with the Last name
of that letter should be displayed.

I am at a lost on how to do this? I tried left() to get it to select the
first letter, but that didnt work. Any suggestions?

Thanks

Lisa
 
6

'69 Camaro

Hi, Lisa.
I would like to have the letters of the alphabet on the side and when the
user clicks on a letter, only those people in the database with the Last name
of that letter should be displayed.

You may put this list in a list box and restrict the records displayed
according to the character that the user selected. Please see Allen Browne's
tip, "Combos with Tens of Thousands of Records," on the following Web page
for code that will get you started:

http://allenbrowne.com/ser-32.html

Change the minimum length of letters in the string to be 1 instead of 3.

HTH.
Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips.

(Please remove ZERO_SPAM from my reply E-mail address so that a message will
be forwarded to me.)
- - -
If my answer has helped you, please sign in and answer yes to the question
"Did this post answer your question?" at the bottom of the message, which
adds your question and the answers to the database of answers. Remember that
questions answered the quickest are often from those who have a history of
rewarding the contributors who have taken the time to answer questions
correctly.
 
Top