Hello I am trying to create a database connection to an excel file and execute a query all in an invoke code . But i don’t know what to do at this point
Dim Conn As New OleDb.OleDbConnection
Dim dbsource As String
Dim dbProvider As String
Dim ExcelPropertise As String
Dim ExcelFullFilePath As String
Dim Query As String
dbProvider = “Provider=Microsoft.ACE.OLEDB.12.0;Data Source=”
ExcelPropertise = “;Extended Properties=”“Excel 12.0 Xml;HDR=YES”“”
ExcelFullFilePath = in_TransactionItem
Conn.ConnectionString = dbProvider+ExcelFullFilePath+ExcelPropertise
Conn.Open()
Query= “Select * from [Sheet1$]”