Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CreateRecordset error 'c0004002' Coding Against Index Server

Status
Not open for further replies.

onedizzydevil

Programmer
Mar 24, 2001
103
US
I am having a problem coding against an Index Server Catalog. I get the following error

CreateRecordset error 'c0004002'

The Query property was not set.

/Default.asp, line 47

and here is the code I am using:

Line 36>> <% If Request.Querystring(&quot;showResults&quot;)=1 Then
Line 37>>
Line 38>> Dim objQuery ' As ixsso.Query
Line 39>> Dim rsQuery ' As ADODB.Recordset
Line 40>>
Line 41>> Set objQuery = Server.CreateObject(&quot;ixsso.Query&quot;)
Line 42>> objQuery.Query = Request.form(&quot;txtQuery&quot;)
Line 43>> objQuery.Columns = &quot;filename.vpath.DocTitle&quot;
Line 44>> objQuery.Catalog = &quot;D:\Index Server Catalogs&quot;
Line 45>> objQuery.MaxRecords = 50
Line 46>>
Line 47>> Set rsQuery=objQuery.CreateRecordset(&quot;nonsequential&quot;)
Line 48>>
Line 49>> %>

Any idea on what the problem may be? Thanks for your help.

Wayne Sellars

&quot;Programming, today is a race between software developers, striving to build bigger and better idiot-proof programs, and the Universe, trying to produce bigger and better idiots. So far, Universe 1 - Programmers 0.&quot;
 
Fixed it. Wayne Sellars

&quot;Programming, today is a race between software developers, striving to build bigger and better idiot-proof programs, and the Universe, trying to produce bigger and better idiots. So far, Universe 1 - Programmers 0.&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top