Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Im using scripts based of this ilogic and it works great .
AddReference "System.Data" AddReference "System.Core" AddReference "System.Xml" Imports System.Data.OleDb Imports System.Data Imports System.Xml Sub Main() Dim Table_ As String = "EmployeeInfo01" Dim query As String = "SELECT * FROM " & Table_ Dim MDBConnString_ As String = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Temp\EmployeeInfo.accdb;Persist Security Info=False;" Dim ds As New DataSet Dim cnn As OleDbConnection = New OleDbConnection(MDBConnString_) cnn.Open() Dim cmd As New OleDbCommand(query, cnn) Dim da As New OleDbDataAdapter(cmd) da.Fill(ds, Table_) cnn.Close() Dim t1 As DataTable = ds.Tables(Table_) Dim row As DataRow Dim Item(2) As String For Each row In t1.Rows MessageBox.Show("EID : " & row(0) & " and Employee Name : " & row(1) Next End Sub
i want to build pre select for for this.
this means that in the accdb file there are more then one table
for example have
EmployeeInfo01
EmployeeInfo02
EmployeeInfo03
EmployeeInfo04
EmployeeInfo05
EmployeeInfo06
Employee_Tables_list.Add(??) *checks the accdb file tables and add them to the list**
MultiValue.List("Employee_Tables") = Employee_Tables_list
does anybody know how to do this??
Solved! Go to Solution.