Re: Recordset used in Select/Option pick list



WynnGIS wrote:
Bob,

Thank you so much for the response and for the helpful hints. I've
almost got it but I can't get the correct syntax in the GetString
loop. I see how each value get placed in the first statement
optHTML=rs.GetString(,,""">" & vbcrlf & "<option value=""")

by placing a response.write optHTML in the loop.

I don't see where the option tag gets closed and I don't
understanding the concatenation.

Sorry, I should have tested it. The option tags don't need to be closed.
I've tested this code with a table in my database and it works fine. I'm
putting in a Response.Write to help you understand what's going on. You
can comment it out when you get the idea.

Change the code to:

If not rs.EOF then
optHTML=rs.getstring(,,,vbcrlf & "")
response.write "Result of GetString:<br>"
response.write "<pre>" & optHTML & "</pre>"
optHTML="<option>" & left(s,len(s) - len(vbcrlf & "<option>"))
End If



--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.


.



Relevant Pages

  • RE: mail relay problems setting up
    ... response as follows:- ... Open the properties page of the Default SMTP Virtual Server in Exchange ... > This newsgroup only focuses on SBS technical issues. ... you may want to contact Microsoft CSS directly. ...
    (microsoft.public.windows.server.sbs)
  • Re: The Modernization of Emacs: terminology buffer and keybinding
    ... there instead of in the newsgroup that I am reading. ... then later come back to see if there's been any response to ... He's the one that started this thread and included cljp in the ... I just got a spontaneous popup saying "The Windows scripting host is ...
    (comp.lang.java.programmer)
  • Re: Need help to find most popular records in 2 related Tables
    ... and the date/time of the original post. ... > so much with email and newsgroup communications that change every hour. ... > response to one of my own (except when I totally lose track due to a HD ... So, normally, just posting again in here will be ...
    (microsoft.public.access.queries)
  • Re: abbreviations
    ... >> use google to search this newsgroup for acronyms used here. ... They have to wait for a response - and when they get it, ... It's selfish to expect everyone to bend over backwards to answer YOUR ... All you have to do is bookmark it. ...
    (rec.crafts.woodturning)
  • Re: Honorable men, and drooping eyes
    ... Perhaps some USENET historian can help us pin down the ... We clearly have similar ages on this newsgroup, and you have perhaps used it more. ... I attempted killfiling, but it was impossible to ditch more than a fraction of the kooks, so gave up killfiling forever. ... Your post in response to my comment, not whine or complaint as you prejudicially like to characterize it was not responsible or even intelligent in the least. ...
    (rec.backcountry)