Hi Anne,
I ran into the same problem. Here is what I found. You can use the export
option of docmd.transferspreadsheet if your data source is a table. For a
View or StoredProcedure you need to use the OutputTo command. Hope this helps!
DoCmd.OutputTo acOutputServerView, "Qry_ExportClients", acFormatXLS,
"C:\IntraFlow\ClientExport.XLS"
Rick
> Hi,
> I have an ADP database connected to a SQL Server database.
[quoted text clipped - 3 lines]
> DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9,
> "tblSaving", strFile, True, "Saving".
anne.rowe@ozemail.com.au - 25 Nov 2006 19:59 GMT
Hi,
I am using tables already. my problems is more on the name of the table
that I use, than the object type. I am afraid that I would run into the
same problem if I use a query and docmd.output, it will work for me as
the dbowner but not for other users.
Anne
> Hi Anne,
>
[quoted text clipped - 14 lines]
> > DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9,
> > "tblSaving", strFile, True, "Saving".