Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old March 16th, 2004, 12:26 PM
Authorized User
 
Join Date: Feb 2004
Location: , , Canada.
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to sinner
Default Drop down

It works in another page but not here grrrrrrrr. Any thoughts??


<form name="openedticket">
  <p><select name="open" size="1">
    <option value="NULL">LIST OF OPEN TICKETS BY PSAP</option>
    <option><% Do While Not rs.EOF Response.Write ("<OPTION value='"& rs("PSAP") & "'>" & rs("PSAP")) rs.MoveNext Loop rs.Close Set rs=Nothing %></option>
  </select><input type="submit" value="View">&nbsp;&nbsp;&nbsp; </p>
</form>


Microsoft VBScript compilation error '800a0401'

Expected end of statement

/Smc/ticket/view_tickets.asp, line 27

Do While Not rs.EOF Response.Write ("<OPTION value='"& rs("PSAP") & "'>" & rs("PSAP")) rs.MoveNext Loop rs.Close Set rs=Nothing
---------------------------------------------------------------------------------------^

  #2 (permalink)  
Old March 16th, 2004, 01:10 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Might I suggest this? The problem might be having code on the same line.

<form name="openedticket">
  <p><select name="open" size="1">
    <option value="NULL">LIST OF OPEN TICKETS BY PSAP</option>
    <% Do While Not rs.EOF
        Response.Write ("<OPTION value='"& rs("PSAP") & "'>" & rs("PSAP") & "</option>")
        rs.MoveNext
    Loop
    rs.Close
    Set rs=Nothing %>
  </select><input type="submit" value="View">&nbsp;&nbsp;&nbsp; </p>
</form>

Peter
------------------------------------------------------
Work smarter, not harder.
  #3 (permalink)  
Old March 19th, 2004, 02:51 PM
Authorized User
 
Join Date: Feb 2004
Location: , , Canada.
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to sinner
Default

Problem solved. Thank you very much :D



Similar Threads
Thread Thread Starter Forum Replies Last Post
Drop down SKhna Javascript 1 January 25th, 2008 07:46 AM
drop down p2pMember ASP.NET 1.0 and 1.1 Basics 1 February 20th, 2006 06:34 AM
drop down list values based on another drop down noor ASP.NET 1.0 and 1.1 Basics 3 July 5th, 2005 09:57 AM
value of the drop-down crmpicco Classic ASP Basics 15 February 24th, 2005 11:11 AM
Populating Drop Down based on other drop down jeffbarclay Java Databases 1 November 7th, 2003 12:14 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.