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!

Choice query problam

Status
Not open for further replies.

Lyubomyr

Programmer
Jul 23, 2005
21
UA
Hi!
I need to form query which should search for the customers thu the base. The customer table contains many fields such as company name, contact person, location and others. All i need it to find if it is possible to have one parametrized query and use as if i had several queries.
Example
find the customer by the company name
fine the customer by the company name and contact person
find the customer by all fields

Thank you
 
You could create a form with a text box "Forms!frmSearch!txtFind". Then you query can have a where clause like:

Where Instr(CompanyName & ContactPerson & City & Address, Forms!frmSearch!txtFind)>0

Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top