ConString = "Provider=Microsoft.ACE.OLEDB.16.0;Data Source=""" & ThisWorkbook.FullName & """;Extended Properties=""Excel 12.0 Macro;HDR=Yes;IMEX=1"";"
I'm also not sure what you actually want.My workplace receives files in excel format from an official institution with the same schema but changing content, and I calculate the statistics of different information such as unique, similar, total and number in these files.
Why do you want to use SQL? Or is it that you just want a TDataset?It is very easy to do the above operations in SQL, it is a little more problematic in Excel. For this reason ;
Provided the OLE-DB-Provider is installed, you can use an ODBC-ConnectionCode: [Select]ConString = "Provider=Microsoft.ACE.OLEDB.16.0;Data Source=""" & ThisWorkbook.FullName & """;Extended Properties=""Excel 12.0 Macro;HDR=Yes;IMEX=1"";"
Hi All,In fpspreadsheet, there is a TsWorksheetDataset which allows to access a spreadsheet like a database. No SQL, though.
Is there a method where we can query an open and active Excel list on the screen as if we were using a database (with SQL Sentences)?
If possible use early binding.Thank you very much for the reply, Master Thaddy. Maybe I've been using ole for twelve years, I didn't know about such a thing. ;D
Please note that your program won't run on systems without (offline-) Office installed when using early binding.If possible use early binding.Thank you very much for the reply, Master Thaddy. Maybe I've been using ole for twelve years, I didn't know about such a thing. ;D