I'd like to thank you all for this effective forum; I was able to find the solution after going thru similar inquiries, also I found the discussion between @whitty15 and @EMP very helpful to me. Therefore, I'd like to share the answer with you all to share the knowledge.
The query expression...
I have a query that is using a form named "DateRange2" to change the criteria of one field "Dept1" in order to filter this query. Then the I designed a report that can be opened by using a command button 'cmdOpenReport' with form VBA code:
Option Compare DatabasePrivateSub Form_Open(Cancel...