|
-
June 8th, 2000, 08:57 AM
#1
How to use 'Like' in a query..........
I am using 'Like' in a sql query for a text field but not able get that to work. Here is what I am doing
SDescription = "'" & Text1.Text & " *'"
"SELECT * FROM TABLE WHERE DESCRIPTION LIKE " & SDescription
-
June 8th, 2000, 09:01 AM
#2
Re: How to use 'Like' in a query..........
What Database Format are you using?
-
June 8th, 2000, 09:11 AM
#3
Re: How to use 'Like' in a query..........
Access 97 and ADO. Does that matter?
-
June 8th, 2000, 09:16 AM
#4
Re: How to use 'Like' in a query..........
The best way to do it is
SELECT * FROM TABLE WHERE DESCRIPTION LIKE '*" & text1.text & "'"
As far as I remember the wildcard for access is "*" if not use "%" which is the one for SQL Server
Don't forget that it will only work on words of the same case
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
|