I'm getting the error Missing Default Property on this(session("oRs"
= oRs) line
Can anyone help me with this?
dim oRs
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 oRs = objCmd.Execute()
session("oRs"
= oRs
Set oRs = nothing
'objCmd = nothing
if not session("oRs"
.eof then
response.write "you made it"
End if
Can anyone help me with this?
dim oRs
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 oRs = objCmd.Execute()
session("oRs"
Set oRs = nothing
'objCmd = nothing
if not session("oRs"
response.write "you made it"
End if