R
Robert Crandal
I am able to make an ADO connection to files of type "*.xls"
using the following connection string:
szConnect = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=C:\MyData\data2.xls;Extended Properties=""Excel
8.0;HDR=NO;IMEX=1"""
However, the above connection string does NOT work if my Excel
file is of type "*.xlsx". In fact, if I try to connect to an "xlsx" file
using the above
string, I get an error message that says "External table is not in the
expected format"!
What am I doing wrong? Do I need to modify the connection string to be
able
to read *.xlsx fileS?
Thank you!
using the following connection string:
szConnect = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=C:\MyData\data2.xls;Extended Properties=""Excel
8.0;HDR=NO;IMEX=1"""
However, the above connection string does NOT work if my Excel
file is of type "*.xlsx". In fact, if I try to connect to an "xlsx" file
using the above
string, I get an error message that says "External table is not in the
expected format"!
What am I doing wrong? Do I need to modify the connection string to be
able
to read *.xlsx fileS?
Thank you!