It works perfectly! Thank you very much. I'll try to ask you for some more help if you can: after applying the filters I would like to open a report, I have created a button on which, on the click event, I enter the same code, but I get an error, maybe this is not the procedure? Thanks again