Quantcast
Channel: put mdb file list in dropdownlist from a folder
Viewing all articles
Browse latest Browse all 20

Re: put mdb file list in dropdownlist from a folder

$
0
0


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




Viewing all articles
Browse latest Browse all 20

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>