Since you know how to write a bit of code...(i.e. creating input boxes) then this should be all you need...
1) Create a label or text box to hold the value entered by the user... (in this case lets use a text box called txt_TextBox)
Now within the sub procedure you in (in the code section)...
Private Sub SubYourIn()
'/** Enter the following code
dim response as variant
response = InputBox("Enter a Value")
txt_TextBox.Value = response
Exit Sub
Now that you've assigned the reponse to the text box you can use the value from the text as your criteria
Now within your Query that you are using, in the criteria for the field that you want to filter by type in
Like Forms![aFormName]![txt_TextBox].Value & "*"
This should be all you need....
tc3of4
The easiest way to ask for the user's input is in the design mode of your select query
Enter the following in the criteria box
Like [Enter A Criteria] & "*"
You need to keep the square brackets, all you need to do is Replace the Prompt -- "Enter a Criteria" -- to what ever you want,
If the user does not enter anything, then it will return all data, hence the "*" part.
Hope this wasn't too confusing...
tc3of4
[This message has been edited by tc3of4 (edited 01-18-2001).]