+ Reply to Thread
Results 1 to 3 of 3

Populate ComboBox from Database based on ListBox selection

  1. #1
    Registered User
    Join Date
    04-16-2015
    Location
    Dublin, Ireland
    MS-Off Ver
    2010
    Posts
    3

    Populate ComboBox from Database based on ListBox selection

    Hi Everyone,

    I've been trying to populate a combobox from a database in a userform based on relevant listbox selection and display the entries in another database on a separate sheet.

    Both ComboBox and ListBox entries will be from Database1 and the remaining entries in UserForm1 will be displayed in Database2

    For Example, If i select "A" from Column A in ListBox, then everything in Column B associated with "A" in Database1 should appear in the ComboBox. Following my selection in ComboBox, i input the remaining entries in UserForm1 which would then be displayed in Database2.

    Hope to get some positive responses and thanks in advance!

  2. #2
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Populate ComboBox from Database based on ListBox selection

    Welcome to the forum

    Are you actually using a Database or just using Excel? It's not at all clear from your question.

    It would also be immeasurably useful to upload a workbook that we can play with

  3. #3
    Registered User
    Join Date
    04-16-2015
    Location
    Dublin, Ireland
    MS-Off Ver
    2010
    Posts
    3

    Re: Populate ComboBox from Database based on ListBox selection

    Hi Kyle123,

    Thank you for coming forward to help out! Apologies for the confusion in my question.

    I'm attaching a rough version of the workbook i'm trying to create. It has two spreadsheets, "Agreement DB" and "Amendment DB". There are also two UserForms, "UserForm1" to input details in Agreement DB and "UserForm2" to input details in Amendment DB.

    In UserForm2, i want to populate whats under Column C in Agreement DB in the AgmtInput ListBox depending on what Primary Party you select in the P1Input ComboBox. The P1Input CombBox will be limited to those 11 items only.

    All data entered into UserForm2 then goes straight into the Amendment DB.

    Hope this is helpful!
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Populate Listbox based on Combobox selection
    By wallybur in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-27-2014, 04:48 AM
  2. Populate TextBox based off ComboBox selection
    By ladams41 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-07-2014, 01:24 PM
  3. Userform Combobox to populate based on selection in another combobox
    By Excelnoub in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-14-2014, 03:34 PM
  4. [SOLVED] Automatically Populate Listbox from ComboBox Selection
    By doglover in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-21-2013, 01:51 AM
  5. populate listbox based on selection in previous listbox
    By sarahng86 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-28-2007, 10:55 PM

Tags for this Thread

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1