A pretty query - user selects criteria

GregP

Registered User.
Local time
Tomorrow, 08:55
Joined
Sep 16, 2002
Messages
66
I have no troubles modifying a query to cater for my search criteria, but what if you want the user to be able to do it, ideally at a form level? Similar to the 'Find' button in a form, but I want to create a datasheet or tabular form containing only the records I want. The closest I've gotten so far to a neat interface is in the design view of the query, adding a non-existent field Expr1: [Search String] and then having [Search String] as the criteria for the field I want to search. When you open this form, it pops up 'Enter Parameter Value' Search String:, and typing the value concerned will do this.

But I think there has to be a better way. This method only seems to be able to return exact matches, regardless of where I insert wildcards, and 'Enter Parameter Value' isn't a 'neat' end-user term to display. How would I do this at form level?
 
You can create a form whereby you specify search criteria and then click a button to perform the search without the user being noticeable asked for parameters. For the criteria, reference the control on the form:

[Forms]![frmMyForm]![txtMyCriteria]
 

Users who are viewing this thread

Back
Top Bottom