This is what I need to do:<br>I have a table, the table has a bunch of entries that are sorted by a vendor. Now each vendor will have 1 to a bunch of entries, but not every vendor is on the list. What I did so far is create a query that lists the vendors on the table and no dupes. Another query, asks for a vendor and then shows the entries corresponding to the vendor. Easy so far? Yes. <br>Here's where it gets hard. I need code that will automatically go through the list of vendors, run the query that lists the entries by vendor, and export each of those queries into excel 97 format, with each filename having the name of the vendor. all in all it should create one file for each vendor, doesn't matter if there are 1 to 100 files created, just need a seperate file for each vendor.<br>Any questions, please let me know!!!!!<br><br>Thanks in advance!