Results 1 to 5 of 5

Thread: is tis possible?

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2000
    Location
    Buffalo,NY
    Posts
    8
    I am want to use a Input box to set the WHERE clause in a SQL statement I tried using for example:
    strSQL="SELECT * from SHAPES WHERE color =Search$" but it will not recognise the value in Search$ is this possible or is there any easier way to do this .When I run in debug mode the Search$ contains the value I want but not when I add it to the sql

    Mike

  2. #2
    Addicted Member
    Join Date
    Jan 2000
    Location
    Oshkosh, WI
    Posts
    163
    If Search$ is a variable in your application you need to try something like this:

    strSQL="SELECT * from SHAPES WHERE color = '" & Search$ & "'"

    Note the single quote characters surrounding the Search$ variable.

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2000
    Location
    Buffalo,NY
    Posts
    8
    Thanks Glenn I will give that a try what is the purpose of that & symbol before and after the string?

  4. #4
    Frenzied Member
    Join Date
    Aug 1999
    Location
    Santa Clara, Ca , 95058
    Posts
    1,105
    String concatination operator.

  5. #5

    Thread Starter
    New Member
    Join Date
    Feb 2000
    Location
    Buffalo,NY
    Posts
    8
    Many Thanks worked like a charm You saved me what little hair I have left

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