i got salary , employee , salary , employee in my DropDownList_table dropdown. thats what i am saying mike
Using conn = New System.Data.OleDb.OleDbConnection("Provider=Microsoft.JET.OLEDB.4.0;" & "data source=D:\mdb\sal.mdb") Using cmd = New System.Data.OleDb.OleDbCommand() conn.Open() Dim dt = conn.GetSchema("Tables") For Each row As DataRow In dt.Rows If row("TABLE_TYPE").ToString() = "TABLE" Then DropDownList_table.Items.Add(New ListItem(row("TABLE_NAME").ToString())) End If Next conn.Close() End Using End Using