I am getting an error "rowset position cannot be restarted". The following is the bit of code I'm using. I have been able to get it to work without using sessions and just doing a response.write. I need to get it working using sessions because this is how the app was built in order to display reports using Crystal Reports. I'm stuck on this. Any help would be greatly appreciated.
Set oConn = Server.CreateObject( "ADODB.Connection" )
Set objCmd = Server.CreateObject( "ADODB.Command" )
Set session("oRs"
= Server.CreateObject( "ADODB.Recordset" )
sConn = "uid=Foodsrvc;pwd=gA15L6;dsn=StockStatus"
oConn.Open sConn
objCmd.ActiveConnection = oConn
objCmd.CommandTimeout = 180
with objCmd
.commandText = "ProcTrackingOverview "
.CommandType = &H0004
.parameters(1) = Cdate(fsale_date)
.parameters(2) = CDate(tsale_date)
End With
Set session("oRs"
= objCmd.Execute()
'objCmd = nothing
if not session("oRs"
.eof then
session("oRs"
.movefirst
Set oConn = Server.CreateObject( "ADODB.Connection" )
Set objCmd = Server.CreateObject( "ADODB.Command" )
Set session("oRs"
sConn = "uid=Foodsrvc;pwd=gA15L6;dsn=StockStatus"
oConn.Open sConn
objCmd.ActiveConnection = oConn
objCmd.CommandTimeout = 180
with objCmd
.commandText = "ProcTrackingOverview "
.CommandType = &H0004
.parameters(1) = Cdate(fsale_date)
.parameters(2) = CDate(tsale_date)
End With
Set session("oRs"
'objCmd = nothing
if not session("oRs"
session("oRs"