I have an Access query with many fields. I want to write a VBA script to transfer the results of the query to a fixed width text file. I do not need headers. I have all the specifications for the fields and their widths. I believe I need to start with the DoCmd.TransferText command and transferType:=acExportFixed but I am not positive. I just need a little push to get started. When I try just a simple transfer I get an error saying that I need a Specification Name argument.
DoCmd.TransferText transferType:=acExportFixed, TableName:="Name of my query", FileName:="C:\temp\TEST.txt"