Filling a combo box

  • Thread starter Thread starter giannis
  • Start date Start date
G

giannis

Sorry because i dont speak english very well.
I am a newbie at VB and i have the bellow question:
How can i fill a combo box with data from a SQL clause ?
Can you explain me ? Is there any way to do this without code?
If need code , what code must i write ?
 
Be sure you have references set up correctly. You can import them at the
top of your routine.

Imports System.Data
Imports System.Data.SqlClient 'this is probably the one you're missing

Or double-click on "My Project", go to the "References" tab, and add them
there.

Robin S.
------------------------------
 
Tiago said:
You need something like this:

Dim da as SqlDataAdapter= New SqlDataAdapter("SELECT ID,Name FROM
Table", your_db_conn)

My Dataset is a mdb database. What must i write as "your_db_conn" ?
 
Back
Top