Results 1 to 3 of 3

Thread: [RESOLVED] simple question about LIKE

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2009
    Posts
    18

    Resolved [RESOLVED] simple question about LIKE

    where do i put the *

    Code:
    adodcBranchGrid.RecordSource = "SELECT * FROM branch_tbl WHERE branch_name LIKE'" & txtBranchFind.Text & "'"
    what i wanted was when i put c in the textbox it would retrieve all the data that start with c..

  2. #2

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Mar 2009
    Posts
    18

    Re: simple question about LIKE

    thank you

    the code looks like this now

    Code:
    adodcBranchGrid.RecordSource = "SELECT * FROM branch_tbl WHERE branch_name LIKE'%" & txtBranchFind.Text & "%'"

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