M
Mitch
I have the following code that I'm trying to get to link
to an excel workbook, but eveytime I reach the line Set
rstFACPURTemp = excelCnn("Select * From FACPUR") I get
the error "Runtime error -'2147217865(80040e37)': The
Microsoft Jet database engine could not find the
object 'FACPUR' Make sure the object exists and you spelt
it's name and path name correctly"
Dim excelCnn As ADODB.Connection
Set excelCnn = New ADODB.Connection
Dim strDataSource As String
strDataSource = AppPath & "FACPUR.xls"
excelCnn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=" & _
strDataSource & ";Extended Properties=Excel 4.0;"
Set rstFACPURTemp = New ADODB.Recordset
Set rstFACPURTemp = excelCnn.Execute("Select * From
FACPUR")
Any Ideas?
Thanks
Mitch
to an excel workbook, but eveytime I reach the line Set
rstFACPURTemp = excelCnn("Select * From FACPUR") I get
the error "Runtime error -'2147217865(80040e37)': The
Microsoft Jet database engine could not find the
object 'FACPUR' Make sure the object exists and you spelt
it's name and path name correctly"
Dim excelCnn As ADODB.Connection
Set excelCnn = New ADODB.Connection
Dim strDataSource As String
strDataSource = AppPath & "FACPUR.xls"
excelCnn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=" & _
strDataSource & ";Extended Properties=Excel 4.0;"
Set rstFACPURTemp = New ADODB.Recordset
Set rstFACPURTemp = excelCnn.Execute("Select * From
FACPUR")
Any Ideas?
Thanks
Mitch