Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #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
---------------------------------------------------------------------------------------^

Reply With Quote
  #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.
Reply With Quote
  #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

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 01:17 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.