I have a query that I want to export to a specific excel file. I am trying to open the query when clicking on a button and then use the transferspreadsheet function to export it to this file. I am using SQL Server. It keeps coming up with an error saying that it needs a table name, I am giving it a query name, is there a way to use this function with a view or stored procedure?
Thanks
Steph
Thanks
Steph