Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help with Error Message

Status
Not open for further replies.

new2programming

Programmer
Mar 6, 2003
4
US
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=&quot;include/RPTConnect.asp&quot;-->
<html>

<head>
<title>Performance Overview Account Services/Teleservices by Class (Totals) Report</title>
</head>

<body background=&quot;WB00760_.gif&quot;>

<hr>

<hr>

<p><font size=&quot;4&quot;>Performance Overview Account Services/Teleservices by Class (Totals)
Report</font></p>

<hr>

<hr>
<!--#include file=&quot;include/menu.asp&quot;-->
<%

LocCity = Request.Form(&quot;LocCity&quot;)

If LocCity = &quot;&quot; Then



SQL = &quot; SELECT LocCity From ZZLocCity &quot;


Set rs=Server.CreateObject(&quot;ADODB.RecordSet&quot;)
rs.Open SQL, MyDSN


%>

<form Method=&quot;Post&quot;>
<p><select Name=&quot;LocCity&quot; id=&quot;LocCity&quot; size=&quot;1&quot;>
<option Selected>--Select City-- <%While Not RS.EOF%> </option>
<option value=&quot;<%=RS(&quot;LocCity&quot;)%>&quot;> <%=RS.Fields(&quot;LocCity&quot;)%> <% rs.MoveNext Wend rs.Close Set rs = Nothing %> </option>
</select> <input type=&quot;submit&quot; name=&quot;btnSearch&quot; value=&quot;Search&quot;> </p>
</form>
<%
Else


SQLT = &quot;SELECT DISTINCT Classes.TName From Classes Where LocCity = '&quot;&LocCity&&quot;'&quot;



Set rsT=Server.CreateObject(&quot;ADODB.RecordSet&quot;)
rsT.Open SQLT, MyDSN


%>

<form action=&quot;RPTPOTACLSTotRD2.asp?Yr=<%=varYrA%>&quot; method=&quot;Post&quot;>
<input type=&quot;hidden&quot; name=&quot;LocCity&quot; value=&quot;<%=LocCity%>&quot;><p><select name=&quot;TName&quot;
id=&quot;TName&quot; size=&quot;1&quot;>
<option selected>--Select Name-- <%While Not rsT.EOF%> </option>
<option value=&quot;<%=rsT(&quot;TName&quot;)%>&quot;> <%=rsT.Fields(&quot;TName&quot;)%> <% rsT.MoveNext Wend rsT.Close Set rsT = Nothing %> </option>
</select> <input type=&quot;submit&quot; name=&quot;btnSearch&quot; value=&quot;Search&quot;> </p>
</form>
<%End If%>
</body>
</html>
 
this would be more appropriatly asked in the ASP Forum333 but I can tell you you need to format your code to the requirments of the langauge.
eg
<% rsT.MoveNext Wend rsT.Close Set rsT = Nothing %> </option>

is absolutely wrong and needs to be
<% rsT.MoveNext
Wend
rsT.Close
Set rsT = Nothing
%> </option>
_________________________________________________________
for the best results to your questions: FAQ333-2924
01001111 01101110 01110000 01101110 01110100
onpnt2.gif
[/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top