Hi
I have a form called ComponentBookOut
with a Textbox used for filtering records called ItemTxt
and a subform called Componentsubform
Which shows all records from the table COMPONENTS
I am using the following code to filter the records shown on the subform
this works fine unless I want to use a space
i.e. I can search for 100v but not for 100v 1A and putting 100v1A finds no records.
how can I tell the textbox to allow the space character?
Any help would be appreciated
I have a form called ComponentBookOut
with a Textbox used for filtering records called ItemTxt
and a subform called Componentsubform
Which shows all records from the table COMPONENTS
I am using the following code to filter the records shown on the subform
Code:
Private Sub ItemTxt_Change()
Dim strFilter As String
Me.Refresh
strFilter = "ITEM like '*" & Me.ItemTxt & "*'"
Forms!ComponentBookout!Componentsubform.Form.Filter = strFilter
Forms!ComponentBookout!Componentsubform.Form.FilterOn = True
Me.ItemTxt.SelStart = Nz(Len(Me.ItemTxt), 0)
End Sub
this works fine unless I want to use a space
i.e. I can search for 100v but not for 100v 1A and putting 100v1A finds no records.
how can I tell the textbox to allow the space character?
Any help would be appreciated