J
JIM
I'd like to use Stephen Lebans alpha search to load a list box. I have his
search working perfectly and it returns the alpha character in strTemp that
user picks. In Stephen's example he is loading a textbox. I would like to
load a listbox starting with alpha character that user has pressed. Here's
my code:
Private Sub LblAlpha_MouseUp(Button As Integer, Shift As Integer, X As
Single, Y As Single)
If Len(strTemp) & vbNullString = 0 Then
Me.FilterOn = False
Else
Me.Filter = "lboCustomer.CustomerName LIKE " & Chr(34) & strTemp & "*" &
Chr(34)
Me.FilterOn = True
End If
DoEvents
End Sub
I don't know the syntax to apply to a listbox. strTemp holds the alpha
character that I'd like to start loading the Customer table into listbox.
I'm using a query as a source.
Any help appreciated.
search working perfectly and it returns the alpha character in strTemp that
user picks. In Stephen's example he is loading a textbox. I would like to
load a listbox starting with alpha character that user has pressed. Here's
my code:
Private Sub LblAlpha_MouseUp(Button As Integer, Shift As Integer, X As
Single, Y As Single)
If Len(strTemp) & vbNullString = 0 Then
Me.FilterOn = False
Else
Me.Filter = "lboCustomer.CustomerName LIKE " & Chr(34) & strTemp & "*" &
Chr(34)
Me.FilterOn = True
End If
DoEvents
End Sub
I don't know the syntax to apply to a listbox. strTemp holds the alpha
character that I'd like to start loading the Customer table into listbox.
I'm using a query as a source.
Any help appreciated.