I agree with June7. I started writing the code on the form to modify the SQL and then realized it wasn't necessary if the expressions and a data value were changed. LeoM, your VBA hard codes in the values of Owner, StartDate, and EndDate while also locking in the number or heading groups to 3...