Hi, as part of my ongoing nightmare dbase I want to output data from a query to Excel. This is straightforward enough, however, I want to plot a graph on my spreadsheet in Excel from the exported data. If I use the Do.Cmd acOutputTo method it any chart I have created and any subsequent sheets I have created in the spreadsheet. I'm currently trying the DoCmd. TransferSpreadSheet method directly from the query. I activate this using a button on a form. The code I have tried is below:
DoCmd.TransferSpreadsheet acExport, 8, "qryCustomerBookingTotals", "c:\Documents and Settings\Lol\Desktop\Chart.Booking Totals"
When I get this I just keep getting a message saying "Cannot update. Database or object is read only"
Any ideas please? I want to be able to have the chart updated every time the data is re-transferred to excel from the query.
Cheers, Lol
DoCmd.TransferSpreadsheet acExport, 8, "qryCustomerBookingTotals", "c:\Documents and Settings\Lol\Desktop\Chart.Booking Totals"
When I get this I just keep getting a message saying "Cannot update. Database or object is read only"
Any ideas please? I want to be able to have the chart updated every time the data is re-transferred to excel from the query.
Cheers, Lol
