I tried doing so using a form with a text box and a list box.
I used the text boxes on change event to run this code
Expand|Select|Wrap|Line Numbers
- Private Sub txtSearchName_Change()
- Dim strSQL As String
- strSQL = "SELECT tblUsers.UserKey, tblUsers.DisplayName " & vbCrLf & _
- "FROM tblUsers " & vbCrLf & _
- "WHERE (((tblUsers.DisplayName) Like ""*""+ '" & Me.txtSearchName & "' +""*""));"
- Me.lstUserSearch.RowSource = strSQL
- 'Debug.Print Me.lstUserSearch.RowSource
- End Sub
There is a few second lag before the list box updates again. When i debug.print the sql string it doesnt change with every letter entered :-(
Anyone have any ideas?
Thanks in Advance for your help!