Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

filtering a report using a form

Status
Not open for further replies.

Cillies

Technical User
Feb 7, 2003
112
0
0
GB
Hi, I wish to open a report using a form with search criteria. But I only want to use the first letter of the required string. i.e. I want to enter a letter eg:'B' in my search box on the form, which should return all records that start with the letter B, and so on, for any letter I chose.

Hope someone can help.
Many thanks
 
Have a look at the Like operator.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
HI PHV,

Thanks for that, it works fine, but do you know what I would need to do to use this in a parameter query? so the end user gets to select what to search for without having to change the query construct each time?

Many thanks
 
In the criteria cell of the query grid:
Like [Forms]![search form]![search box] & '*'

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top