|
-
Mar 20th, 2000, 10:45 PM
#1
Thread Starter
New Member
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
-
Mar 20th, 2000, 11:19 PM
#2
Addicted Member
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.
-
Mar 21st, 2000, 03:12 AM
#3
Thread Starter
New Member
Thanks Glenn I will give that a try what is the purpose of that & symbol before and after the string?
-
Mar 21st, 2000, 03:30 AM
#4
Frenzied Member
String concatination operator.
-
Mar 21st, 2000, 11:31 PM
#5
Thread Starter
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|