I've created a page that is filtering a query with three text input boxes. One text box is a title key word and the other two are a beginning and an end date. The query is working perfectly and I'm getting a perfect filtered query. However, I would also like to export the query results to a CSV file and then email that CSV file. Both of those steps are working, but there are several CSV files (up to 12) that are being created and emailed as I'm entering data in to all three text boxes. The files are being created based on the first keyword search and then more files are created when I enter the begin date and then another CSV file is created when I enter the end date. I would like one CSV file to be created when all of my search criteria is entered instead of sending it all automatically with several files associated with the search. Any idea how I can do this? I like that it's being done automatically, but I'm wondering if I need the export and email send behind a button.