Sorry but my access version is in Portuguese.
Is a "query" the same as a view?
I created a view, called "test", so i tried this line
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel7, test, strFullPath & "Test.xls", False
but it gives me an error: it says he needs a argument "table...