This is the code in the delete.asp page:
<%@ Language=VBScript %>
<% response.buffer="true" %>
<!--#include file="../lib/voyager.inc"-->
<%
account = Replace(Trim(Request.QueryString("account_id")), "'", "''")
cus = Replace(Trim(Request.QueryString("cusip")), "'", "''")
trdate = Replace(Trim(Request.QueryString("trade_date")), "'", "''")
error = Replace(Trim(Request.QueryString("error_number")), "'", "''")
reportNo = Request.QueryString("strNo").Item
strSQL = "delete from ssga_unmatched_trades"
strSQL = strSQL + " where account_id like '" + account + "%'" + " and cusip like '%" + cus + "%'"
strSQL = strSQL + " and trade_date like '" + trdate + "%'" + " and error_number = " + error + ""
'set Recordset1 = Server.CreateObject("ADODB.Recordset")
'Recordset1.Open strSQL,db,0,1
%>
strSQL = <% =reportNo %>
<% Response.Redirect ("report.asp?strNo='" & Response.Write("reportNo") & "'") %>
<% 'Recordset1.close
'set Recordset1 = nothhing %>
and the code (area that is erroring out) in report.asp is:
<%@ Language=VBScript %>
<% response.buffer="true" %>
<!--#include file="../lib/voyager.inc"-->
<%
' Set Page Size
iPageSize = 300
strSQL = ""
' Retrieve page to show or default to 1
If Request.QueryString("page") = "" Then
iPageCurrent = 1
Else
iPageCurrent = CInt(Request.QueryString("page"))
End If
' Create recordset and set the page size
Set objPagingRS = Server.CreateObject("ADODB.Recordset")
objPagingRS.PageSize = iPageSize
' You can change other settings as with any RS
objPagingRS.CacheSize = iPageSize
If Request.QueryString("order") = "" Then
strOrderBy = " account_id, order_ID"
Else
strOrderBy = Replace(Request.QueryString("order"),"'","''")
End If
If Request.QueryString("strNo") = "1" Then
reportNo = 1
strSQL = strAllExecutions + " order by " + strOrderBy
strHeader="ALL Trade Exceptions from Voyagersql"
end if
if Request.QueryString("strNo") = "2" THEN
reportNo = 2
strSQL = strEQFIExecutions + " order by " + strOrderBy
strHeader="Equity/Fixed Income Trade Exceptions from Voyagersql"
end if
if Request.QueryString("strNo") = "3" THEN
reportNo = 3
strSQL = strCTFExecutions + " order by " + strOrderBy
strHeader = "CTF Trade Exceptions from Voyagersql"
end if
if Request.QueryString("strNo") = "4" THEN
reportNo = 4
strSQL = strOMFExecutions + " order by " + strOrderBy
strHeader = "Outside Market Value Trade Exceptions from Voyagersql"
end if
if Request.QueryString("strNo") = "5" THEN
reportNo = 5
strSQL = strSSgATrades + " order by " + strOrderBy
strHeader = "SSgA/BFDS Trade Exceptions from Voyagersql"
end if
if Request.QueryString("strNo") = "6" THEN
reportNo = 6
strSQL = strPTrustTrades + " order by " + strOrderBy
strHeader = "PTrust Trade Exceptions from Voyagersql"
end if
' Open RS
objPagingRS.Open strSQL, db, adOpenStatic,adLockReadOnly