First of all thank you so much
rvk and
Zvoni for replying.
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.
It is not possible for me to ask for change from the other side.
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 ;
I wanted to reuse the Sql sentences in the Postgresql database that I am currently using, with a few minor changes.
Provided the OLE-DB-Provider is installed, you can use an ODBC-Connection
ConString = "Provider=Microsoft.ACE.OLEDB.16.0;Data Source=""" & ThisWorkbook.FullName & """;Extended Properties=""Excel 12.0 Macro;HDR=Yes;IMEX=1"";"
Yes this might work, thank you very much for the info.