Ask a Question related to Microsoft Access, Design and Development.

  1. #1

    Default Combo boxes

    I have a combo box on one form with has a row source of
    2 fields, an item number and item name.

    I item number width is 0 so it only displays the name, I
    have another text box that displays the number from the
    combo box.

    On the other form I want to get the item name from the
    combo box but I keep getting the number. How would I do
    this? I Even tried SQL statements to select the item
    from the item table where the item number from the
    original form matched the item number in the table but
    couldn't get that to work either.

    SQL used: txtName = "SELECT tblItems.ItemName FROM
    tblItems WHERE tblItems.ItemNumber = txtItemNumber"
    TK Guest

  2. Similar Questions and Discussions

    1. Need help with xml and combo boxes
      Basically what im doing is a ui for a electronic book. The book is broken into 3 parts and each part has its own set of chapters. My xml schema...
    2. Combo Boxes do not work? WHY! :-)
      Alright... I have an issue with some combo boxes absolutely refusing to populate in my movie. You can visit...
    3. Synchronizing two combo boxes
      I wish to synchronizing two combo boxes. I have try the following solution: I have made 2 Combo boxes. The first combo boxes name is cbofirst...
    4. Two combo boxes on a form
      I would do a couple of things differently. First, rename your controls. is a lot more recognizable than , especially if you want to use it as...
    5. Populating several combo boxes
      I have a form that will have a combo box repeated several times (continuous form, one for each record), it's going to cause a problem if each has to...
  3. #2

    Default Combo boxes

    To refer to a combobox column you can use Column(i)
    property. First column is always index 0, second 1, etc.
    For example if combobox name is ItemNumber and it has two
    fields second being item name then you can refer to the
    item name value as ItemNumber.Column(1). It doesn't matter
    whcih column is visible. The order will match the order of
    fields in the combobox query/sql statement.

    Milan
    >-----Original Message-----
    >I have a combo box on one form with has a row source of
    >2 fields, an item number and item name.
    >
    >I item number width is 0 so it only displays the name, I
    >have another text box that displays the number from the
    >combo box.
    >
    >On the other form I want to get the item name from the
    >combo box but I keep getting the number. How would I do
    >this? I Even tried SQL statements to select the item
    >from the item table where the item number from the
    >original form matched the item number in the table but
    >couldn't get that to work either.
    >
    >SQL used: txtName = "SELECT tblItems.ItemName FROM
    >tblItems WHERE tblItems.ItemNumber = txtItemNumber"
    >.
    >
    Milan Guest

  4. #3

    Default Combo boxes

    That worked perfect. Thank you

    >-----Original Message-----
    >To refer to a combobox column you can use Column(i)
    >property. First column is always index 0, second 1, etc.
    >For example if combobox name is ItemNumber and it has
    two
    >fields second being item name then you can refer to the
    >item name value as ItemNumber.Column(1). It doesn't
    matter
    >whcih column is visible. The order will match the order
    of
    >fields in the combobox query/sql statement.
    >
    >Milan
    >
    >>-----Original Message-----
    >>I have a combo box on one form with has a row source
    of
    >>2 fields, an item number and item name.
    >>
    >>I item number width is 0 so it only displays the name,
    I
    >>have another text box that displays the number from the
    >>combo box.
    >>
    >>On the other form I want to get the item name from the
    >>combo box but I keep getting the number. How would I
    do
    >>this? I Even tried SQL statements to select the item
    >>from the item table where the item number from the
    >>original form matched the item number in the table but
    >>couldn't get that to work either.
    >>
    >>SQL used: txtName = "SELECT tblItems.ItemName FROM
    >>tblItems WHERE tblItems.ItemNumber = txtItemNumber"
    >>.
    >>
    >.
    >
    TK Guest

  5. #4

    Default Combo Boxes

    Please help.

    I want to be able to filter data by selecting it from a
    combo box. For example, I have two combo boxes, one with
    car makes, i.e Pontiac, Ford, and in the second box is a
    list of all the car names, i.e Firebird, Mustang. When I
    select Pontiac from the first combo box, I only want the
    second combo to list pontiac cars.

    Hope you can help. Thanks
    David
    David Tunstall Guest

  6. #5

    Default Re: Combo Boxes

    Hi David,

    Check out this KB article:

    ACC: How to Synchronize Two Combo Boxes on a Form (97624)
    [url]http://support.microsoft.com/default.aspx?scid=kb;[/url][LN];97624


    --
    Sandra Daigle
    [Microsoft Access MVP]
    For the benefit of others please post all replies to this newsgroup.

    David Tunstall wrote:
    > Please help.
    >
    > I want to be able to filter data by selecting it from a
    > combo box. For example, I have two combo boxes, one with
    > car makes, i.e Pontiac, Ford, and in the second box is a
    > list of all the car names, i.e Firebird, Mustang. When I
    > select Pontiac from the first combo box, I only want the
    > second combo to list pontiac cars.
    >
    > Hope you can help. Thanks
    > David
    Sandra Daigle Guest

  7. #6

    Default combo boxes

    Hi

    i have a 8 combo boxes on a page which lists a quantity amount. this is for
    users to buy a certain amount of books.
    users have to select from any combo box a certain amount.
    they can select a quantity of 8 in total from the different combo boxes.

    how can i make it so when the user selects the total amount from the different
    boxes and clicks submits, the message saying you have selected too much
    quantity you can only select 8

    what do i need to do in order to stop users selecting more than what is
    allowed.

    also could someone help me work out how to include the total price to display
    on the next page as well please.

    thanks in advance

    dosima Guest

  8. #7

    Default Re: combo boxes

    You might be better off submitting the form and using a server side language
    to process the form.

    --
    Jules
    [url]http://www.charon.co.uk/charoncart[/url]
    Charon Cart 3
    Shopping Cart Extension for Dreamweaver MX/MX 2004


    Julian Roberts Guest

  9. #8

    Default Re: combo boxes

    i am using asp dreamweaver and vbscript
    but have no idea what to do on the next page for the calculations, or how to limit the quantity

    any ideas would be very greatful
    thanks in advance
    dosima Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139