Results 1 to 20 of 27

Thread: Solved: Populate a comboxbox and Listbox in a excel userform with an sql table data

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #8
    VBAX Expert Tinbendr's Avatar
    Joined
    Jun 2005
    Location
    North Central Mississippi (The Pines)
    Posts
    992
    Location
    'your SQL statement
    stSQL = "SELECT DISTINCT Region FROM Region_Mapping"
    You'll have to copy this sub to the Combo1 exit event to populate the listbox without the Distinct filter for all the data.

    Hope this helps!
    Last edited by Aussiebear; 04-19-2023 at 02:05 PM. Reason: Adjusted the code tags

    David


Posting Permissions

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