Drop down menus in forms, possible???

Results 1 to 3 of 3

Thread: Drop down menus in forms, possible???

  1. #1
    Alec D Guest

    Default Drop down menus in forms, possible???

    Hi,<BR>I was wondering if its possible to use drop down menus(lookup field in MS_Access) in an ASP form.<BR><BR>If it is could someone please supply me with the relevant code.<BR><BR><BR>Thankx<BR>Alec

  2. #2
    Join Date
    Dec 1969
    Posts
    733

    Default RE: Drop down menus in forms, possible???

    There are excellent tutorials at www.asp101.com. There is a tutorial at http://www.asp101.com/samples/db_pulldown.asp that gets the values for the dropdown list from a database. It is very sweet. Hope that helps. If you can help me on my above post that would be great.<BR><BR>Derek.

  3. #3
    Join Date
    Dec 1969
    Posts
    308

    Default RE: Drop down menus in forms, possible???

    Try this:<BR><BR>&#039open your database <BR>----------------------<BR>&#060;select name="choices"><BR>&#060;% do while not rs.EOF &#037;&#062;<BR>&#060;option value="&#060;%= rs("fieldvalue") &#037;&#062;">&#060;%= rs("name") &#037;&#062;&#060;/option><BR>&#060;% rs.movenext &#037;&#062;<BR>&#060;% loop &#037;&#062;<BR>&#060;/select><BR><BR>Hope that will save you some time

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •