I have a form to look up a part. So I have a text box where the user enters part of a part number to limit the list. On this text box, I have the following code on the onkeypress event:
This seems to create the sql fine, however, when the user enters the first leter of a part number, the list goes blank.
There is probably a stupidly simple solution, I just can't find it. Any help is appreciated.
Andrew
a.k.a. Dark Helmet
"What's the matter Colonel Sandurz? Chicken?
Code:
Dim sqlst As String
sqlst = "SELECT part.partNumber, part.partDesc " _
& "FROM part " _
& "WHERE (((part.partNumber) Like " & Chr(34) & Me.partNo_txt & "*" & Chr(34) & "));"
Me.part_lst.RowSource = sqlst
Me.part_lst.Requery
There is probably a stupidly simple solution, I just can't find it. Any help is appreciated.
Andrew
a.k.a. Dark Helmet
"What's the matter Colonel Sandurz? Chicken?