Kyle Brown

Kyle Brown

  • NA
  • 6
  • 11.7k

How do I populate a dropdownbox with a list of tables in a SQL database?

May 5 2010 11:23 AM
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

Answers (2)