What is your TransferSpreadsheet using as the "tablename" to export? In Access, tables and querydefs are almost entirely interchangeable so "tablename" should actually be the name of a querydef.
Using the query builder, queries are quite easy to build. Select the table(s) or querdef(s) from the dialog. Close the dialog when you are finished selecting tables and queries. Draw join lines to connect all the tables and queries you added to the grid. Select the columns you want to appear in the output. In the criteria "cell" for column "E" place a 1. run the query to test it. Save it and name it appropriately. Use the query name in the TransferSpreadsheet method