Too late now but you have to provide a Specifcation to export with that command, for example
DoCmd.TransferText acExportDelim, strSpec, strFile, "Z:\strTxtFile & ".txt", True
Creating the export spec is easy but convoluted to find.
You have to manually export the table, choose the csv type and...