Hi,
I am trying to emulate a native PICK application's product search system...(long story.)
Anyway, I have no problem assigning my search forms recordsource to the value of a TextBox but I want the users to be able to "drill down" the search options.
eg. I have the following.
What I would like to be able to do is re-use the textbox variable against the recordsource created here.
Eg. User enters the string
The form would display all records with canon in the description. eg.
Now, if a user typed in
it would drill down to the only option available.
This "drilling down" may have more iterations than the example sited.
Does anyone have any idea how I can attack this one?
Thanks in advance.
Peter.
Remember- It's nice to be important,
but it's important to be nice
I am trying to emulate a native PICK application's product search system...(long story.)
Anyway, I have no problem assigning my search forms recordsource to the value of a TextBox but I want the users to be able to "drill down" the search options.
eg. I have the following.
Code:
On Error GoTo Err_Trap
Dim strSearch As String
strSearch = Me.SearchMe
Forms![AllProducts].Visible = True
Forms![AllProducts].RecordSource = "SELECT * FROM d3_import WHERE" & _
"(((d3_import.[rsv_desc])Like """ & "*" & strSearch & "*" & """))" & _
"ORDER BY d3_import.[rsv_desc] ASC;"
Err_Trap:
If Err.Number <> 0 Then
MsgBox Err.Number & " " & Err.Description
End If
End Sub
What I would like to be able to do is re-use the textbox variable against the recordsource created here.
Eg. User enters the string
Code:
CANON
Code:
CANON EOS 450D BODY
CANON EOS 400D BODY
CANON EOS 1DS BODY
Code:
450D
This "drilling down" may have more iterations than the example sited.
Does anyone have any idea how I can attack this one?
Thanks in advance.
Peter.
Remember- It's nice to be important,
but it's important to be nice