Hi Rx,
I Obviously did work a bit on the suggestions. First of all SORRY, I did not include strSQLED_EMWellSumRpt, BUT I created a module and named it DxED_Monthly. Then I built a form with TextBoxes Text0 and Text2 and button which calls the function. The way I placed an SQL in vba a bit...