I read at devguru that in ASP you could disconnect a recordset from the connection and this would allow you to access the recordset in client side script. Here's my error and a copy of the code. I can't seem to be able to set the properties properly. I would appreciate any suggestions. Thanks in advance.
Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method: 'CursorLocation'
/DisconnectedRecordSet.asp, line 19
<%
'declare locktype and cursor locations
Const adLockBatchOptimistic = 4
Const adUseClient = 1
'declare and instantiate objects
dim cn, rs, ConnectionString, SQL
'cn = server.createobject("ADODB.Connection"
rs = server.createobject("ADODB.RecordSet"
SQL = "SELECT * From Mill, Area, MillAreaCrossRef Where Mill.MID = MillAreaCrossRef.MID " _
& "And Area.AID = MillAreaCrossRef.AID;"
set cn = server.createobject("ADODB.Connection"
ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\InetPub\ one audits.mdb"
cn.open ConnectionString
'Build the recordset
19>rs.CursorLocation = adUseClient
rs.LockType = adLockBatchOptimistic
rs.open SQL, cn
'disconnect the recordset
set rs.ActiveConnection = Nothing
cn.close
%>
Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method: 'CursorLocation'
/DisconnectedRecordSet.asp, line 19
<%
'declare locktype and cursor locations
Const adLockBatchOptimistic = 4
Const adUseClient = 1
'declare and instantiate objects
dim cn, rs, ConnectionString, SQL
'cn = server.createobject("ADODB.Connection"
rs = server.createobject("ADODB.RecordSet"
SQL = "SELECT * From Mill, Area, MillAreaCrossRef Where Mill.MID = MillAreaCrossRef.MID " _
& "And Area.AID = MillAreaCrossRef.AID;"
set cn = server.createobject("ADODB.Connection"
ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\InetPub\ one audits.mdb"
cn.open ConnectionString
'Build the recordset
19>rs.CursorLocation = adUseClient
rs.LockType = adLockBatchOptimistic
rs.open SQL, cn
'disconnect the recordset
set rs.ActiveConnection = Nothing
cn.close
%>