paulcraigdainty
Registered User.
- Local time
- Today, 20:53
- Joined
- Sep 25, 2004
- Messages
- 74
I have four seperate databases each of identical structure. Each database has an option which exports the data to a Excel spreadsheet. I want each database to dump data to the same spreadsheet. I have used the code below and this works however when i execute on a different database the data in the spreadsheet is overwritten. I want the action to update the spreadsheet rather than overwrite, is this possible?
Private Sub cmdReport_Click()
DoCmd.OutputTo acOutputTable, "tblFault", acFormatXLS, "C:\Windows\Desktop\Fault.xls"
Application.FollowHyperlink "C:\Windows\Desktop\Fault.xls"
End Sub
Private Sub cmdReport_Click()
DoCmd.OutputTo acOutputTable, "tblFault", acFormatXLS, "C:\Windows\Desktop\Fault.xls"
Application.FollowHyperlink "C:\Windows\Desktop\Fault.xls"
End Sub