new2programming
Programmer
Microsoft VBScript compilation error '800a03ea'
Syntax error
/Training_Dept/RPTPOTA.asp, line 40
RS.MoveNext Wend RS.Close Set RS = Nothing
------------^
Here is the error message that I receive I will provide the code below if any one has suggestion for a fix to this problem please sumbit.
Code:
<%@Language=VBScript%>
<%Response.Buffer = True%>
<!--#include file="include/RPTConnect.asp"-->
<html>
<head>
<title>Performance Overview by Class (Totals) Report</title>
</head>
<body background="WB00760_.gif">
<hr>
<hr>
<p><font size="5">Performance Overview by Class (Totals) Report</font></p>
<hr>
<hr>
<!--#include file="include/menu.asp"-->
<%
LocCity = Request.Form("LocCity"
If LocCity = "" Then
SQL = " Select Distinct LocCity From Classes "
Set rs=Server.CreateObject("ADODB.RecordSet"
rs.Open SQL, MyDSN
%>
<form Method="Post">
<p><select Name="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 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" 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/RPTPOTA.asp, line 40
RS.MoveNext Wend RS.Close Set RS = Nothing
------------^
Here is the error message that I receive I will provide the code below if any one has suggestion for a fix to this problem please sumbit.
Code:
<%@Language=VBScript%>
<%Response.Buffer = True%>
<!--#include file="include/RPTConnect.asp"-->
<html>
<head>
<title>Performance Overview by Class (Totals) Report</title>
</head>
<body background="WB00760_.gif">
<hr>
<hr>
<p><font size="5">Performance Overview by Class (Totals) Report</font></p>
<hr>
<hr>
<!--#include file="include/menu.asp"-->
<%
LocCity = Request.Form("LocCity"
If LocCity = "" Then
SQL = " Select Distinct LocCity From Classes "
Set rs=Server.CreateObject("ADODB.RecordSet"
rs.Open SQL, MyDSN
%>
<form Method="Post">
<p><select Name="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 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" 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>