Results 1 to 10 of 10
  1. #1
    Duncan is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Oct 2010
    Posts
    71

    Combo Boxes


    I’m new to Access. Basically I want to display information in the table in the form of a combo box for each field. The problem I'm having is that I want each record to display different information in the form of the combo box for the end user to select from.
    It would seem that Access can only display the same data down a field for each record if that data is displayed as a combo box.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    I suspect the problem is not that it's a combo, but that it's unbound (no control source).
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Duncan is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Oct 2010
    Posts
    71
    Many thanks - So next question how do I change the control source to unbound

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    It sounds like it already is. Is there a field in the underlying data that it should be bound to?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    Duncan is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Oct 2010
    Posts
    71
    Yes you were right the combo was unbound when created in a form with no control source.
    Basically I'm still in the table phase of the database and was trying to get that down pat before creating the forms (may be the wrong way around not sure). Any way, for arguments sake lets say I have three small table called Car, Truck, Bus. Each table has the same amount of fields and heading. Each table however the data is different under the same filed names (e.g., make, model, colour etc). This data is represented in combo boxes.
    What I'm tring to do is have the three tables accessed (linked to) via the one table or form in the end for the end user.
    That is, in the one table, the first field would have a combo box with car, truck, bus selection and when you selected either car, bus or truck the rest of the data in abovementioned table (make, model, colour) becomes available in the form of a combo box to select the relavent info like colour etc. Then on the NEXT record if a different mode or tansport is selected either bus or truck different date relating to that specific transport becomes available in the form of combo box.
    I can link one say 'car' then the info about cars comes available but when I go to the next record and select say 'bus' that specific related info does not appear but the car info does as it was in the first record.
    I hop that makes sense. (thus I want each record to access different information depending on whether car, bus or truck is selected in the form of a combo box)

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    No, you are correct to get the table design correct first. It is likely a mistake to have 3 tables with the same fields. I would have 1 table with an extra field for the vehicle type.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  7. #7
    Duncan is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Oct 2010
    Posts
    71

    combo boxes

    Thanks for the assistance,
    Okey I have one table with the first field been Vehicle Type.
    Record one cars, record two buses etc. The next field along is Model.
    The problem is cars, buses and trucks have hundreds of different models. I could put all the models for all of them in the one combo box, but this would be combersome and unachieveable (two long).
    I was hoping to have cars models only in the cars record in a combo box and the next record being buses, would only have bus models in the model field.
    But Access can only have the same information (selectable infomation in a combo box) down a field for each record if that information is represented in a combo box. Not completely different selectable information which is what I'm trying to achieve for each record.
    I think I"m missing some thing here (msy be relating to linking or query) or it can not be done. I've been trying for weeks re: links and creating the end table different ways.

  8. #8
    Duncan is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Oct 2010
    Posts
    71

    Lightbulb combo box

    Maybe the answer is to have the three different tables cars, buses, trucks kept separate as tables and use a combo box in a form for the user to select one of the three and when selected, the rest of the fields associated with that mode of transport becomes available for the user to select from.

  9. #9
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    This type of thing is often done with cascading combos:

    http://www.baldyweb.com/CascadingCombo.htm

    Though this technique doesn't work well on a continuous or datasheet form.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  10. #10
    Duncan is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Oct 2010
    Posts
    71
    Thanks heaps pbaldy. I think that is exactly what I want will research net on how to apply same to my table.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Combo boxes
    By Nixx1401 in forum Forms
    Replies: 1
    Last Post: 07-19-2010, 06:07 AM
  2. combo boxes
    By thewabit in forum Forms
    Replies: 7
    Last Post: 01-01-2010, 08:51 PM
  3. combo boxes
    By googenfrog in forum Forms
    Replies: 3
    Last Post: 07-03-2009, 05:41 PM
  4. combo boxes
    By labrams in forum Forms
    Replies: 0
    Last Post: 04-20-2006, 09:28 AM
  5. Combo Boxes
    By Mxcsquared in forum Forms
    Replies: 0
    Last Post: 01-19-2006, 04:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums