Results 1 to 6 of 6
  1. #1
    kacocal is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jun 2015
    Posts
    26

    Talking Selections in Combobox A and B, then populate my choosen result in combobox C (with two columns)

    Hi Everyone,

    I am quite new to MS Access and I am using MS Access 2007. I am going to build 3 comboboxes in a Form,

    Combobox A is a drop-down box (it contains 3 values): Item 1, Item 2 and Item 3


    Combobox B is another drop-down box (it contains 3 values): Data 1, Data 2 and Data 3
    Combobox C is based on what you have choosen from Combobox A and B and it has two columns.

    For example, I choose Item 1 in Combobox A and Data 1 in Combobox B, then Combobox C will have two columns and display Item 1 in column 1 and then
    Data 1 in Column 2 of combobox C

    Another example, when I choose Item 3 is combobox A and Data 2 in Combobox B, then Combobox C will have two columns and display Item 3 in Column 1 and then Data 2 in Column 2 of combobox C.

    Are there any suggestions for me to achieve my goal? I am quite new to MS Access, but this had to be done by me a.s.a.p.

    Any quick responses will be much appreciated.

    Thanks.

  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,521
    Sounds like a homework assignment or something. If you have a one-record table, you can use a query but selecting each of the two combos and using that table so you only get one record.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    kacocal is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jun 2015
    Posts
    26
    Quote Originally Posted by pbaldy View Post
    Sounds like a homework assignment or something. If you have a one-record table, you can use a query but selecting each of the two combos and using that table so you only get one record.
    Hi Baldy,

    Thank you for your reply. But what is best solution I can achieve my goal? How can I populate one record from combobox A into column 1 of combobox C and then one record from combobox B into column 2 of combobox C? Is it possible for me to write a query to achieve it? What will be my query looks like? (Both combobox A and B's values are the same table).

    If anyone has any suggestions, please guide me through since I need to have the result a.s.a.p.

    Thanks in advance.

  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,521
    Like I said:

    SELECT Combo1, Combo2
    FROM TableName

    using valid full form syntax to refer to the combos.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    kacocal is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jun 2015
    Posts
    26
    Quote Originally Posted by pbaldy View Post
    Like I said:

    SELECT Combo1, Combo2
    FROM TableName

    using valid full form syntax to refer to the combos.
    Thank you very much pbaldy. I have figured out how to do. Thank you once again.

  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,521
    No problem; I hope we get an "A".
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 17
    Last Post: 04-29-2015, 11:48 AM
  2. Replies: 1
    Last Post: 02-01-2015, 12:16 AM
  3. Replies: 2
    Last Post: 02-13-2013, 09:45 AM
  4. Replies: 2
    Last Post: 09-08-2012, 08:25 PM
  5. dependent combobox selections
    By jle0003 in forum Forms
    Replies: 2
    Last Post: 05-15-2012, 12:22 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