Thank you for providing the code - that is really helpful but one more question and I am sure this is something I should be able to see but how do I end the code at the MsgBox. My DoCmd.OutputTo acOutputReport, "SOP30DayRPT", acFormatXLS, "SOP30DayRPT - " & Format(Date, "mmddyyyy") & ".xls"...