I have a database when I click on a button it transfers data from a table to an excel sheet which has two tabs.
The original database and button works.
Database is in the same folder as the excel file.
Now I created a new database and copied the same vba string command and now it is telling me it can't find the file.
here the string:
Private Sub Command95_Click()
DoCmd.SetWarnings False
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "Performance_report_HW_1_DE", CurrentProject.Path & "\Performance report HW-DE.xls", False, A3
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "Performance_report_HW_History_DE", CurrentProject.Path & "\Performance report HW-DE.xls", False, A3
Any Ideas?
The original database and button works.
Database is in the same folder as the excel file.
Now I created a new database and copied the same vba string command and now it is telling me it can't find the file.
here the string:
Private Sub Command95_Click()
DoCmd.SetWarnings False
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "Performance_report_HW_1_DE", CurrentProject.Path & "\Performance report HW-DE.xls", False, A3
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "Performance_report_HW_History_DE", CurrentProject.Path & "\Performance report HW-DE.xls", False, A3
Any Ideas?