+ Reply to Thread
Results 1 to 6 of 6

Populate excel dropdown list in Userform from Access Table

  1. #1
    Registered User
    Join Date
    12-17-2015
    Location
    Pennsylvania
    MS-Off Ver
    MS Office 365
    Posts
    85

    Populate excel dropdown list in Userform from Access Table

    Is there a way to populate a dropdown list in a userform from a list in Access table? We have projects that are set up in excel and when they become projects we move them into our database. I would like to create a userform to do this, so I can automate the process and have some data validation so there not multiple entries for the same item. I know I can create tables in excel, but I need them to be dynamic, so as we add items to the database, the dropdown reflects it. Thanks for looking and let me know if I can give you more info to help.

    thanks in advance

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,872

    Re: Populate excel dropdown list in Userform from Access Table

    Fast answers need visual help. Please read the yellow banner at the top of this page on how to attach a file. For a sample Access file, you will need to zip it before attaching it.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    12-17-2015
    Location
    Pennsylvania
    MS-Off Ver
    MS Office 365
    Posts
    85

    Re: Populate excel dropdown list in Userform from Access Table

    I was just curious if its possible to do, not looking for someone to do it for me. I learn much better by doing. Not sure what visual information you need? I can post my userform showing the dropdown list I would like to populate with data from an Access database, or the code showing the userform initialize if needed?

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,872

    Re: Populate excel dropdown list in Userform from Access Table

    Not something I have ever done so I was curious as to how the data was arranged and what it might take to export the data to a form/combobox. I am thinking that you would need to export from either a table or query the list to Excel with VBA and as part of the VBA insert the data to a known Form/combobox. Best I can offer you right now.

  5. #5
    Registered User
    Join Date
    12-17-2015
    Location
    Pennsylvania
    MS-Off Ver
    MS Office 365
    Posts
    85

    Re: Populate excel dropdown list in Userform from Access Table

    I appreciate the help. I will look into that. I pulled the data from the database and made a table on our network, but this only works if there is an existing entry. I guess I could make some code to add to the names, if not there, but thought there might be a way to just use the access table.

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,872

    Re: Populate excel dropdown list in Userform from Access Table

    Ok. Some thoughts. Build a table of acceptable items and write a query and then export it to Excel using DoCmd.transferspreadsheet function in VBA and then take that data that is in Excel and import it to your form/Combobox. Back in Access you can use the acceptable terms table joined with your other data to track your information.

+ 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. [SOLVED] Populate Userform List box with table data on another sheet
    By Rudidw in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 06-29-2020, 06:47 AM
  2. [SOLVED] How to auto populate a table when a criteria is selected from dropdown list
    By majana54 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-20-2019, 03:38 AM
  3. Replies: 8
    Last Post: 05-24-2017, 06:35 AM
  4. [SOLVED] populate excel userform from access database
    By Megatronixs in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-16-2015, 03:19 PM
  5. Populate table based on time selected in dropdown list
    By jmp764 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-15-2014, 10:51 AM
  6. How to access the data on a dropdown list in excel using WIN32OLE
    By Termites in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-24-2013, 04:26 PM
  7. Finiding max value in Access table and populate in Excel userform textbox
    By LisaPatch in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-02-2011, 05:44 AM

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