|
-
November 8th, 2010, 05:42 AM
#1
query help
I want to add a query on a form called Customers...
So, I want to type the begining of the Customer's name, and when i push the button, on the datagridview appear all the Customers with a name like that....
How to use the 'like' on a select.... PLEASE help me.....
My database is Access....
-
November 8th, 2010, 08:18 AM
#2
Re: query help
Try...
SELECT * FROM Customers where name like '*nes' - Returns where name ends in "nes"
or
SELECT * FROM Customers where name like 'jo*' - Returns where name starts with "jo"
or
SELECT * FROM Customers where name like '*one*' - Returns where name contains "one"
The "*" is the wild card character in Access
-
November 8th, 2010, 02:40 PM
#3
Re: query help
I found the solution to my problem. Your reply was helpful. Thank you
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|