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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Find text string from query 1

Status
Not open for further replies.

IANGRAND

Technical User
Jul 29, 2003
92
GB
I have a form where the user types in part of their address. I have the query looking up this textbox, but want it to find the addresses that contain the specific text string.

What is the ocde i require to enter in the expression builder. I have tried "like", but to no avail.

Cheers

Ian
 
Can you show us how you tried using LIKE?

HarleyQuinn
---------------------------------
Help us to help you,
read FAQ222-2244 before posting.
 
It's not right,

Like [Forms]![Form1]![Text7]

probably not using it correctly.

Ian
 
You need to use a wildcard character. Something like:
Code:
Like [Forms]![Form1]![Text7] & *
Hope this helps

HarleyQuinn
---------------------------------
Help us to help you,
read FAQ222-2244 before posting.
 
Sorry, that should have read
Code:
Like [Forms]![Form1]![Text7] & "*"
Cheers

HarleyQuinn
---------------------------------
Help us to help you,
read FAQ222-2244 before posting.
 
Or even:
Code:
Like "*" & [Forms]![Form1]![Text7] & "*"
I'll post it right eventually [smile]

HarleyQuinn
---------------------------------
Help us to help you,
read FAQ222-2244 before posting.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top