I am using a function because it has a some date manipulation in it and more importantly, I also use the same code for some other reports. So, instead of having basically the same code in multiple spots, I put it in Module1 to access it from these different areas.
Here is a same of some of the...