dbRecordSet

Define the user supplied recordset object handle. This property should only be used under very rare conditions where the Recordset object is not within control and has to be generated external to the ASPdb modules.

Property Syntax

Obj.dbRecordSet = RecordSet Object

Example

<%
Set objConn = Server.CreateObject("ADODB.Connection")
Set objRs = Server.CreateObject("ADODB.Recordset")
connStr = "DSN=NWIND;"
objConn.Open connStr
objRs.Open "SELECT CustomerID,CompanyName FROM Customers", objConn,3,1,1

Set X = Server.CreateObject("Asp.DB")
X.dbRecordSet = objRs
X.DBGridTableTag = "Border=1"
X.DBUnit=101
X.dbGridInc=5
X.dbMode = "Grid"
X.ASPDB

objRS.Close
objConn.Close
Set objRS = nothing
Set objConn = nothing
%>

Notes