syntax help urgent pls
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: syntax help urgent pls

  1. #1
    Join Date
    Mar 2011
    Posts
    34

    syntax help urgent pls

    how could i add course2 with my syntax..my code doesnt work..

    Code:
    RSonn3 "select * from tbluserinfo where course Like '" & text1.text & "%'" AND course2 Like '" & text1.text "'%"

  2. #2
    Join Date
    Mar 2011
    Posts
    34

    Re: syntax help urgent pls

    its like combining this two codes by i dont know how to combine them.
    Code:
    RSconn3 "select *from tbluserinfo where course Like '" & Text1.Text & "%'"
    RSconn3 "select *from tbluserinfo where course2 Like '" & Text1.Text & "%'"

  3. #3
    Join Date
    Jan 2006
    Location
    Chicago, IL
    Posts
    15,002

    Re: syntax help urgent pls

    Use OR instead of AND for one or the other.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  4. #4
    Join Date
    Mar 2011
    Posts
    34

    Re: syntax help urgent pls

    thanks alot.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center