Gossamer Forum
Home : General : Databases and SQL :

Problem on SQL select ...

Quote Reply
Problem on SQL select ...
I wanted to do a select on

strSQL = "SELECT * FROM Info WHERE Name = '" & userid & "'"(This code work fine)
which display only all the Name = to userid.


But how to combine this
strSQL = "SELECT * FROM Info WHERE Name = '" & userid & "'"


with this

strSQL = "SELECT * FROM Info WHERE INSTR(Info.Name,'" & strSearch & "')"

so i can search the database within the Name = userid only
Subject Author Views Date
Thread Problem on SQL select ... gnehs 4158 Jul 30, 2003, 6:21 PM
Post Re: [gnehs] Problem on SQL select ...
Paul 3869 Jul 31, 2003, 3:05 AM