D
David
Hi,
I'm trying to add a search facility to a page that looks for matches in one,
other or both memo fields of a database. The code below works fine if the
visitor types in one word, or the term just happens to exist in one of the
queried fields.
What I'd really like is for a visitor to type in an expression, or query in
the same format as you would use in a search engine and it would find
appropriate matches. Any ideas how I can modify the code below to do this?
Thanks
set rsData = con.execute("select topic, title, ID, description from journals
where articletext LIKE '%" & searchstring & "%' OR description Like '%" &
searchstring & "%' ORDER BY dateno DESC")
I'm trying to add a search facility to a page that looks for matches in one,
other or both memo fields of a database. The code below works fine if the
visitor types in one word, or the term just happens to exist in one of the
queried fields.
What I'd really like is for a visitor to type in an expression, or query in
the same format as you would use in a search engine and it would find
appropriate matches. Any ideas how I can modify the code below to do this?
Thanks
set rsData = con.execute("select topic, title, ID, description from journals
where articletext LIKE '%" & searchstring & "%' OR description Like '%" &
searchstring & "%' ORDER BY dateno DESC")