SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseSQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old December 7th, 2000, 12:51 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
Parsing out blank recordsets in dropdown boxes

<i><b>Originally posted by : Terry (rathbun@usa.net)</b></i><br />Hello,<br />Im having trouble with blank fields being displayed in a dropdown box thats displaying recordsets from a table, any suggestions on how to parse them out?<br />Heres the current code i have:<br /><br /><select size=1><br /><% oRs.movefirst<br />do while not oRs.eof<br />%><br /><%totalinst = oRs.fields("InstallUnit") & vbTab & " Qty: " & oRs.fields("TotalInstall")%><br /><option><%=totalinst%><br /><% oRs.movenext<br />loop<br />%></select><br /><br />im concatenating the 2 strings so the dropdown shows the units and qty. any help is greatly appreciated.<br />Thx =)<br />

Reply With Quote
  #2  
Old December 11th, 2000, 04:01 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : Venki (nomail@hotmail.com)</b></i><br />check the codings to overcome your problem<br /><br /><br /><br />------------<br />Terry at 12/7/2000 9:51:39 AM<br /><br />Hello,<br />Im having trouble with blank fields being displayed in a dropdown box thats displaying recordsets from a table, any suggestions on how to parse them out?<br />Heres the current code i have:<br /><br /><select size=1><br /><% oRs.movefirst<br />do while not oRs.eof<br />%><br /><br /><%if not isnull(ORs.fields("Installuni") then<br />totalinst = oRs.fields("InstallUnit") & vbTab & " Qty: " & oRs.fields("TotalInstall")%><br /><option><%=totalinst%><br /><br /><%end if <br />oRs.movenext<br />loop<br />%></select><br /><br />im concatenating the 2 strings so the dropdown shows the units and qty. any help is greatly appreciated.<br />Thx =)<br />

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseSQL Development > Parsing out blank recordsets in dropdown boxes


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT