luckygeekboy
New member
How can I set a reference to a workbook returned from a query against an Access 2002 DB containing Excel workbooks stored as .xls files?
I have manually populated a table field of data-type: OLE Object with an Excel spreadsheet from within Access 2002.
I just have no idea how to deal with the recordset obj that is returned when I query the field. Here is what I initially tried (ugly as it is):
This returned an invalid cast exception...
So I tried this to see what I was getting back from the Query:
Upon examining the resulting Obj, it was basically as array of digits.
I should perhaps add that Im using VB.NET 2003, OfficeXP, with MSs OfficeXP PIAs.
Ive researched this problem fairly vigorously without success, so I would appreciate any help that anyone can provide.
Thank You!
I have manually populated a table field of data-type: OLE Object with an Excel spreadsheet from within Access 2002.
I just have no idea how to deal with the recordset obj that is returned when I query the field. Here is what I initially tried (ugly as it is):
PHP:
objWorksheet = CType(objRS.Fields("ExcelTemplate1").Value, Excel.Workbook).Worksheets(1)
This returned an invalid cast exception...
So I tried this to see what I was getting back from the Query:
PHP:
Dim obj As Object = objRS.Fields("ExcelTemplate1").Value
Upon examining the resulting Obj, it was basically as array of digits.
I should perhaps add that Im using VB.NET 2003, OfficeXP, with MSs OfficeXP PIAs.
Ive researched this problem fairly vigorously without success, so I would appreciate any help that anyone can provide.
Thank You!