I'm working with my boss on a project to keep things more organized in our company. I'm making a template we can use for our monthly reports that: a) print how many of (blank metric here) each team did b) how many distinct computers everyone worked on together (total number of computers worked on without counting the same computer twice) and how many departments are having issues (again distinct, not counting the same department twice).
We are organizing them by date, usually in months so each SQL query has a:
WHERE DATE BETWEEN [Start Date] AND [End Date]
So if we do each query by itself and you can look at everything from the dates you define through user input. The problem is when I have all the queries I need in one form (three subreports in one master report), I have to enter each queries respective [Start Date] and [End Date] - so 6 parameters which is really just the same two done three times.
Is there anyway to fix this using VBA? I haven't messed with VBA much, but I'm pretty comfortable with SQL. Thanks for the help!