Hey everyone,
Any help on the following problem would be excellent because I have a deadline coming up...
PROBLEM: I'm exporting an Access query to an Excel workbook as a worksheet. I'm using the following code:
strDocName = "qry_Power_Positions_Crosstab_ELE"
strFile = "C:\Data\BO Automation\Power Positions\East Power Positions-062802.xls"
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, strDocName, strFile, True, ""
I've done this for several queries/workbooks it always works fine. However, a couple of export attempts produce errors.
THE ERROR: After the export I try to open the spreadsheet (manually--the open function is not automated). I get this dialog box:
"The instruction at "0x3004c309" referenced memory at "0xfffffffc". The memory could not be "read" Click OK to terminate Click CANCEL to debug the program"
Both options result in excel not being able to open the document.
Any help would be greatly appreciated.
Any help on the following problem would be excellent because I have a deadline coming up...
PROBLEM: I'm exporting an Access query to an Excel workbook as a worksheet. I'm using the following code:
strDocName = "qry_Power_Positions_Crosstab_ELE"
strFile = "C:\Data\BO Automation\Power Positions\East Power Positions-062802.xls"
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, strDocName, strFile, True, ""
I've done this for several queries/workbooks it always works fine. However, a couple of export attempts produce errors.
THE ERROR: After the export I try to open the spreadsheet (manually--the open function is not automated). I get this dialog box:
"The instruction at "0x3004c309" referenced memory at "0xfffffffc". The memory could not be "read" Click OK to terminate Click CANCEL to debug the program"
Both options result in excel not being able to open the document.
Any help would be greatly appreciated.