Fill combobox with SQL Table Column Names

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Robert Brown

    Fill combobox with SQL Table Column Names

    Hi All..

    Is there a way to populate a combobox with the column names returned
    from an SQL query, rather than filed information?

    Yes, I could hard code the column names into the Combo Box, but I need
    this to be dynamic.

    Thanks,
    Robert
  • One Handed Man [ OHM ]

    #2
    Re: Fill combobox with SQL Table Column Names

    Yes you need to set the datasource of the control to your table.


    "Robert Brown" <rbrown@edium.c om> wrote in message
    news:bdd1819.03 09111651.689c5b 4@posting.googl e.com...[color=blue]
    > Hi All..
    >
    > Is there a way to populate a combobox with the column names returned
    > from an SQL query, rather than filed information?
    >
    > Yes, I could hard code the column names into the Combo Box, but I need
    > this to be dynamic.
    >
    > Thanks,
    > Robert[/color]


    Comment

    Working...