full-text index query question

G

Guest

Hello,

I'm trying to construct a query to a full-text index from an Access 2007
form to SQL Servert 2005.

my query is

SQLStr = "SELECT EventId " & _
"into tbltempsupersearch " & _
"FROM dbo_tbleventsdocs " & _
"WHERE CONTAINS(content,'""blah""')"

I get an error message undefined function 'contains' in expression.....
I've removed content and replaced with *, I've removed it altogther and tried
a variety of "" and '

thanks much
 
M

Marshall Barton

Jen said:
I'm trying to construct a query to a full-text index from an Access 2007
form to SQL Servert 2005.

my query is

SQLStr = "SELECT EventId " & _
"into tbltempsupersearch " & _
"FROM dbo_tbleventsdocs " & _
"WHERE CONTAINS(content,'""blah""')"

I get an error message undefined function 'contains' in expression.....
I've removed content and replaced with *, I've removed it altogther and tried
a variety of "" and '


I don't use SQL Server, but Access doesn't use Contains.
Try something more like:

"WHERE content LIKE '""%blah%""')"
or maybe:
"WHERE content LIKE '""*blah*""')"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top