Hello all! This is my first post here so hopefully my question is detailed enough for you all to help me. I believe my question is rather simple, however, after much searching I haven't found what I am looking for. What I have is a form with textbox and a datagridview that displays the results entered intot he textbox. What I want is to have a dropdownbox or combobox that my users can select which sql table to search and then enter what they are searching in the textbox. Right now I have to go into the solution and change the sql command to search a specific table and that is a hassle.
Thanks in advance and if I left any details out please let me know without bashing me please.
Kyle
How do I populate a dropdownbox with a list of tables in a SQL database?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Dipa AhujaRank #1,168 · 1.5K reputationPosted May 5, 2010, 7:48 AM EDT
Kyle Brown6 reputationPosted May 6, 2010, 11:34 AM EDT
KB