Close

Results 1 to 2 of 2

Thread: MS Access Help

  1. #1
    DF VIP Member craig99's Avatar
    Join Date
    Jan 2001
    Location
    Glasgow
    Posts
    151
    Thanks
    0
    Thanked:        0
    Karma Level
    296

    Default MS Access Help

    Just new to access and trying to create and ASP page.

    I have a table with 5 fields;ID, Catagory, Barcode, Description & Price.

    I want to have a drop down box showing description & price, however the wizard only shows 1 field even though I have specified it to show 2. How to you do it?

    Or an alternative ; a drop down showing description only, then another box on the screen showing the price of the item selected.

    Can anybody help?

    Cheers

    Craig

  2. #2
    DF VIP Member graham.edmon's Avatar
    Join Date
    May 2001
    Location
    Edinburgh
    Posts
    263
    Thanks
    0
    Thanked:        0
    Karma Level
    290

    Default

    Since you're talking ASP I am assuming that you are doing this with a WEB based front end, yes?

    solutions:-

    1. concatenate the two fields together with non breaking spaces, setting the width long enough to hold both fields..

    i.e.


    PHP Code:
       <select name="mydropdown">

       <%
         do 
    until oRS.EOF
             response
    .write "<option value=""" ors("value") & """>" oRS("name") & "&nbsp;&nbsp;" ors("Price") & "</option>"
             
    oRS.MoveNext
         loop
       
    %>
       </
    select
    alternatively, you could built a java script array to hold the other information and on the OnChange event of the select box, you could populate a DIV tag with the relevant information.. (let me know if you want help on this un...)

Similar Threads

  1. BTBroadband access barred?!
    By ski in forum Internet Connections & VPNs
    Replies: 1
    Last Post: 28th November 2002, 12:26 PM
  2. need access but don`t know password
    By yorg in forum PC Problems
    Replies: 4
    Last Post: 11th October 2002, 06:59 PM
  3. access problem
    By Aware in forum Forum Bug & Error Reports
    Replies: 1
    Last Post: 30th September 2002, 09:24 PM
  4. Free to access channels
    By benjiguy in forum Digital Satellite TV
    Replies: 4
    Last Post: 23rd September 2002, 09:56 PM

Social Networking Bookmarks

Posting Permissions

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