Search Form Specify Row Highlight

qwerty99

Registered User.
Local time
Today, 06:01
Joined
May 7, 2013
Messages
41
I have a form that acts as a search form where the user inputs a string of text which then updates and filters a list box. For some reason when it does this it highlights the 2nd row on that list, even if there is no data there. How can I get it to automatically highlight the first row? The database is attached and the form in question is FRM_SearchMulti.
Thanks in advance!
 

Attachments

Set the focus on the first item in the list box, instead of the second by changing to "1" to "0":
Code:
Me.SearchResults = Me.SearchResults.ItemData(1)
Change the "1" to "0"    
Me.SearchResults = Me.SearchResults.ItemData(0)
 

Users who are viewing this thread

Back
Top Bottom