Solved

Modify Sql Query ToSearch Any Part Of The Field

Posted on 2008-09-29
3
412 Views
Last Modified: 2010-04-21
I need to modify the following query so that it will find John Smith or John or Smith or John Henry Smith in text20
I need to modify the following query so that it will find John Smith or John or Smith or John Henry Smith
 
 
 
SELECT Customer.CustNo, Customer.Customer, Customer.Address, Customer.City, Customer.State, Customer.ZipCode, Customer.Phone, Customer.Contact, Customer.CustOther, Customer.Art
FROM Customer
WHERE (((Customer.Customer) Like [Forms]![Customer]![text20]));

Open in new window

0
Comment
Question by:mickeyshelley1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 60

Accepted Solution

by:
Kevin Cross earned 500 total points
ID: 22602468
Try this:
SELECT Customer.CustNo, Customer.Customer, Customer.Address, Customer.City, Customer.State, Customer.ZipCode, Customer.Phone, Customer.Contact, Customer.CustOther, Customer.Art
FROM Customer
WHERE (((Customer.Customer) Like "*" & [Forms]![Customer]![text20] & "*"));

Open in new window

0
 

Author Closing Comment

by:mickeyshelley1
ID: 31501441
Thanks that did the trick
0
 
LVL 60

Expert Comment

by:Kevin Cross
ID: 22602648
You are welcome.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As they say in love and is true in SQL: you can sum some Data some of the time, but you can't always aggregate all Data all the time! Introduction: By the end of this Article it is my intention to bring the meaning and value of the above quote to…
Confronted with some SQL you don't know can be a daunting task. It can be even more daunting if that SQL carries some of the old secret codes used in the Ye Olde query syntax, such as: (+)     as used in Oracle;     *=     =*    as used in Sybase …
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

632 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question