I am trying to use access to generate a flat file to simulate a file we are receiving from an ERP system. The text file is relatively small. Header, Trailer, and detail record type, but there is one detail record per each order. I created a table for each record type and then export them as text files. How can I link all three record types so that Access generate a single text file using all three tables? Does this make sense? Is this even possible?<br>I would like to total all units sold to include correct data on the trailer record. Am I asking for the world from Access? Any other ideas?<br>Thanks from QA!<br>