guys. naload ko na sa combobox yung table names,. salamat sa inyo. ngaun, problem ko naman is kung panu ko gagawin yung pag clinick ko yung Table Name sa combobox yung table na yun yung iloload.. may idea b kau kung pnu yung gawin. kahit idea lang mga brad. thanks,, eto code ko sa pag fetch na table names sa combobox.
Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click
Dim myConnection As New OleDb.OleDbConnection
Dim strConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\IT-PC\Documents\Visual Studio 2010\Projects\MaterialsSectionISV2\Metal.accdb"
myConnection.ConnectionString = strConnectionString
myConnection.Open()
Dim schemaTable As DataTable = myConnection.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, New Object() {Nothing, Nothing, Nothing, "TABLE"})
For Each dr As DataRow In schemaTable.Rows
Combo1.Items.Add(dr.Item("TABLE_NAME"))
Next
End Sub