Expected statement error  on my ASP page

Posted on 2005-03-16
Medium Priority
Last Modified: 2012-06-27
I am getting the above error on my asp page and the code fails at the "<%WEND%> line. Any help will be appreciated

<% if RSEnvironmental("PROJ_ID")="" Then %>
<% else %>
<table border="4" bordercolor="b0c4de" cellpadding="2" cellspacing="2" align="center">
              <td><br><br><b>PROJECT ID</b></td>
                <td><br><br><%=RSEnvironmental("PROJ_ID")%> </td>
              <td><b> OWNER </b></td>
              <td><b> OCCUPANT </b></td>

              <td><b>PROPERTY ADDRESS</b></td>

              <td><b>ENVIRONMENTAL DATABASE</b></td>
              <td><b>PREVIOUS BUSINESS</b></td>

<%      RSEnvironmental.MoveNext%>
<%      WEND%>

<% end if %>
Question by:trwd
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

alexandermancera earned 2000 total points
ID: 13557528
The problem is that there is not a while in the code. If it exists before the if, the wend should go after the end if.

Author Comment

ID: 13557624
hey Thanks I completely overlooked it. I somehow couldn't tell what was wrong. let's just say it hasn't been a great morning

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question