CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: query help

  1. #1
    Join Date
    Nov 2010
    Posts
    10

    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....

  2. #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
    Share your DVD library contents with your Facebook Friends at www.isharealot.com

  3. #3
    Join Date
    Nov 2010
    Posts
    10

    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
  •  





Click Here to Expand Forum to Full Width

Featured