I need to fill combobox named crs with all the Courses
that already in Data Base table"Course" Column "crs_code"
:(
that how i thought it done
but it did'nt work
:(
Dim _oCon As New System.Data.SqlClient.SqlConnection() _oCon.ConnectionString = "server=(local);database=collage;trusted_connection=yes" Dim s As String s = "select Crs_code from Course " Dim adpt As New System.Data.SqlClient.SqlDataAdapter(s, _oCon) Dim DS As New DataSet() adpt.Fill(DS) crs.DataSource = DS.Tables(0).Columns(0)
Please if any one no how to do it ,please tell me :(