Hello all,
I have the a form with a button ( at least one of them does what i'll depict
) that should export some tables previously created by another command button ,to an existing excel file and each in a specifc cell range.
The file is copied form a shared location to the folder where the imported file is.
This path is kept in a simple string variable ( Public glbFilePath As String in a module )
When I run the vba to export my tables i get the error below :
I don't understand why,because i can't find something wrong with my code.
I evan try another database form scratch and it seems to get corrupted by the same error as well..
Any ideas how could I repair or find another way to trasfer my tabeles,but keep in mind that i need to have them in a specifc cell range.
Regards,
I have the a form with a button ( at least one of them does what i'll depict
The file is copied form a shared location to the folder where the imported file is.
This path is kept in a simple string variable ( Public glbFilePath As String in a module )
When I run the vba to export my tables i get the error below :
The Microsoft Jet database engine could not find the object ".Make sure the object exists and that you spell its name and path name correctly
I don't understand why,because i can't find something wrong with my code.
I evan try another database form scratch and it seems to get corrupted by the same error as well..
Any ideas how could I repair or find another way to trasfer my tabeles,but keep in mind that i need to have them in a specifc cell range.
Regards,
Code:
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "tbl_Operations_per_type", glbFilePath & "Raport.xls", True, "Details!A6:B12"
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "tbl_Operations_per_status", glbFilePath & "Raport.xls", True, "Details!A16:B24"
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "tbl_timeline_towards_the_Country", glbFilePath & "Raport.xls", True, "Details!E6:F12"
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "tbl_timeline_towards_SSPO_from_req", glbFilePath & "Raport.xls", True, "Details!E16:F24"
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "tbl_op_per_Service_counted", glbFilePath & "Raport.xls", True, "Details!A28:B60"
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "tbl_op_per_country_counted", glbFilePath & "Raport.xls", True, "Details!E28:F60"