paramesium
Registered User.
- Local time
- , 23:54
- Joined
- Oct 23, 2013
- Messages
- 15
Hi all,
I wanted to build a dynamic search form using text box instead of the common combo box type.
After searching throughout the forum, I found an example that used the combo box and the searching portion of the code is as followed:
As I am very new to ms Access and VBA, I have no Idea how to insert (Like "*" & Me.txtID & "*") into the code to make the dynamic search using text box possible.
Please advice, thanks in advance!
Regards,
Jack
I wanted to build a dynamic search form using text box instead of the common combo box type.
After searching throughout the forum, I found an example that used the combo box and the searching portion of the code is as followed:
Code:
If Nz(Me.txtID, "") > "" Then
If Len(Nz(strFilter)) > 0 Then strFilter = strFilter & " And "
[COLOR="red"] strFilter = strFilter & "CategoryID = '" & Me.txtID & "'"[/COLOR]
bFilter = True
End If
As I am very new to ms Access and VBA, I have no Idea how to insert (Like "*" & Me.txtID & "*") into the code to make the dynamic search using text box possible.
Please advice, thanks in advance!
Regards,
Jack