new2programming
Programmer
Microsoft VBScript compilation error '800a03ea'
Syntax error
/Training_Dept/RTPL.asp, line 43
rs.MoveNext Wend rs.Close Set rs = Nothing
------------^
If any one knows a fix for this please inform. Here is the code for that page.
Code:
<%@ Language=VBScript %>
<%Response.Buffer = True%>
<!--#include file="include/RPTConnect.asp"-->
<html>
<head>
<title>Performance Overview Account Services/Teleservices by Class (Totals) Report</title>
</head>
<body background="WB00760_.gif">
<hr>
<hr>
<p><font size="4">Performance Overview Account Services/Teleservices by Class (Totals)
Report</font></p>
<hr>
<hr>
<!--#include file="include/menu.asp"-->
<%
LocCity = Request.Form("LocCity"
If LocCity = "" Then
SQL = " SELECT LocCity From ZZLocCity "
Set rs=Server.CreateObject("ADODB.RecordSet"
rs.Open SQL, MyDSN
%>
<form Method="Post">
<p><select Name="LocCity" id="LocCity" size="1">
<option Selected>--Select City-- <%While Not RS.EOF%> </option>
<option value="<%=RS("LocCity"%>"> <%=RS.Fields("LocCity"%> <% rs.MoveNext Wend rs.Close Set rs = Nothing %> </option>
</select> <input type="submit" name="btnSearch" value="Search"> </p>
</form>
<%
Else
SQLT = "SELECT DISTINCT Classes.TName From Classes Where LocCity = '"&LocCity&"'"
Set rsT=Server.CreateObject("ADODB.RecordSet"
rsT.Open SQLT, MyDSN
%>
<form action="RPTPOTACLSTotRD2.asp?Yr=<%=varYrA%>" method="Post">
<input type="hidden" name="LocCity" value="<%=LocCity%>"><p><select name="TName"
id="TName" size="1">
<option selected>--Select Name-- <%While Not rsT.EOF%> </option>
<option value="<%=rsT("TName"%>"> <%=rsT.Fields("TName"%> <% rsT.MoveNext Wend rsT.Close Set rsT = Nothing %> </option>
</select> <input type="submit" name="btnSearch" value="Search"> </p>
</form>
<%End If%>
</body>
</html>
Syntax error
/Training_Dept/RTPL.asp, line 43
rs.MoveNext Wend rs.Close Set rs = Nothing
------------^
If any one knows a fix for this please inform. Here is the code for that page.
Code:
<%@ Language=VBScript %>
<%Response.Buffer = True%>
<!--#include file="include/RPTConnect.asp"-->
<html>
<head>
<title>Performance Overview Account Services/Teleservices by Class (Totals) Report</title>
</head>
<body background="WB00760_.gif">
<hr>
<hr>
<p><font size="4">Performance Overview Account Services/Teleservices by Class (Totals)
Report</font></p>
<hr>
<hr>
<!--#include file="include/menu.asp"-->
<%
LocCity = Request.Form("LocCity"
If LocCity = "" Then
SQL = " SELECT LocCity From ZZLocCity "
Set rs=Server.CreateObject("ADODB.RecordSet"
rs.Open SQL, MyDSN
%>
<form Method="Post">
<p><select Name="LocCity" id="LocCity" size="1">
<option Selected>--Select City-- <%While Not RS.EOF%> </option>
<option value="<%=RS("LocCity"%>"> <%=RS.Fields("LocCity"%> <% rs.MoveNext Wend rs.Close Set rs = Nothing %> </option>
</select> <input type="submit" name="btnSearch" value="Search"> </p>
</form>
<%
Else
SQLT = "SELECT DISTINCT Classes.TName From Classes Where LocCity = '"&LocCity&"'"
Set rsT=Server.CreateObject("ADODB.RecordSet"
rsT.Open SQLT, MyDSN
%>
<form action="RPTPOTACLSTotRD2.asp?Yr=<%=varYrA%>" method="Post">
<input type="hidden" name="LocCity" value="<%=LocCity%>"><p><select name="TName"
id="TName" size="1">
<option selected>--Select Name-- <%While Not rsT.EOF%> </option>
<option value="<%=rsT("TName"%>"> <%=rsT.Fields("TName"%> <% rsT.MoveNext Wend rsT.Close Set rsT = Nothing %> </option>
</select> <input type="submit" name="btnSearch" value="Search"> </p>
</form>
<%End If%>
</body>
</html>