Make lastname the first column in the list box:
Lastname Firstname Customer
SO Select Lastname,Firstname,Customer From Client into array aTemp will allow a search on the Lastname Column!
>hi,
>
>i have a listbox with 3 columns, customer #, lastname and firstname. i've set incremental search to .T.
>
>if i pressed a letter, my list pointer moves to the first customer # with that first letter.
>
>i want my list pointer to move based on lastname, say if i pressed "C", my list would move to the first customer whose lastname starts with C.
>
>how can i do that?