troubleshooting Question

Drop down box using recordsets

Avatar of AlHal2
AlHal2Flag for United Kingdom of Great Britain and Northern Ireland asked on
Web Development Software
3 Comments1 Solution407 ViewsLast Modified:
In the code below RSName is a recordset and Company Name is a field within it.

<select name="CoName">
<OPTION Value="Company" selected>Company</OPTION>
      <% Do until RsName.EOF %>
   <OPTION Value="<%=RsName("Company Name")%>"><%=RsName("Company Name")%></OPTION>

On a webpage this will produce a drop down box.  Suppose I am searching for a company Imperial chemical industries.  If I type "I" then it will go to companies beginning with I.  However if I then type M I will go to companies beginning with "M".  I want to get to companies beginning with "Im".

Is there a VBscript or Javascript function that would help?

When selecting a name from the Outlook addresses I can do the above e.g typing AB would give names beginning with AB.


Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros