Fill A VB6 Recordset Using The ASP Response Object

D

Dan Sikorsky

My old development computer, Windows XP Pro, Visual Basic 6 SP5, used then
following with success to fill a VB6 recordset from an ASP page, but my new
computer, Windows XP Pro, Visual Basic 6 SP6, gives an error:
SomePage.ASP looks like this with no HTML:

Set xConn = Server.CreateObject("ADODB.Connection")
xConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &
Server.MapPath("data/db.mdb")

Set rst = xConn.Execute("SELECT TOP 100 PERCENT whatever")
rst.Save Response
rst.Close
Set rst = Nothing
xConn.Close
Set xConn = Nothing

VB app looks like this:

Set rst = New ADODB.Recordset
rst.Open "http://somedomain.com/asp/somepage.asp"

The error message upon executing the rst.open statement is:

Error #3709

The connection cannot be used to perform this operation. It is either closed
or invalid in this context.



How do I fix the problem?



Thank you kindly,

Dan Sikorsky
 

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

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top