Progress on printing/emailing statements

Now getting internal database error, but before wasn't even processing the checkboxes.