The import works fine on two other hosts. The new host says I need to create an ODBC using the Excel driver but I did not have to do this on the other hosts. Here is the error:
**** Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
/dwzExport/ExcelImport.asp, line 492 ****
Here is line 482 to 492:
**** private sub readFromExcelContent()
if sXlsConnString = "" then sXlsConnString = "Driver={Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb)};DriverId=1046;DBQ=#DBQ#;DefaultDir=#DefaultDir#;" else sXlsConnString = replace(sXlsConnString, "#DBQ#", FullFilePath, 1, -1, vbtextcompare) sXlsConnString = replace(sXlsConnString, "#DefaultDir#", getDir(FullFilePath), 1, -1, vbtextcompare) end if
Set xlsConn = Server.CreateObject("ADODB.connection") xlsConn.Open sXlsConnString ****
Any suggestions? Do I need to make an ODBC connection, and if so, what are the settings? Thanks.
MzLiberty |
|
|