You mean you can't read my mind? Sorry. Let me slow down and try to be clearer.
I need to have information in a report that covers varying date ranges. This has to do with our Managers calling potential investors (large institutional investors). The report needs to have essentially the following (all for the date range specified by the user). I use two tables, one for information about the individual call being reported, a second that allows the user to list any number of follow up duties/things to be mailed. Kind of like invoice and lineItem tables in a one to many relationship, if that analogy helps at all.
*Number of calls attempted
*Number of calls completed (where they actually reach the proper person)
[Aside: One of the fields has entries for CA and CM for the above]
*Number of meetings arranged (count the records where this field is not blank)
*Who those meetings were arranged with (I had planned a subreport listing company names and dates of the meetings. The input form already has a CompanyID field and the user fills in the Meeting Date field on the form they are using)
*Materials sent (On the user's form, there is a subform bound to the second table. My assumption again was that I would use a subreport to pull the data from this second table)
*A list of those prospects who were moved to a category of declined or dropped (we rate potential investors on their likelihood of investing. Essentially they are rated on a 1 through 6 numbering system with declined/dropped being the 7th option. On the user's form there is a place to note that this investor should be moved to this category and thus searching for those moved to this category is an easy search. Again, I felt a subreport would be the easiest way to list these companies.)
My single largest problem is the number of times I keep getting asked for the beginning and ending dates for which to include records. Using parameter queries as the basis for each report, every subreport generates a new request for the beginning and ending dates for my range. I do not, of course, ask for the date range in every underlying query, but those queries do in some fashion refer back to a query that does ask for the beginning and ending dates. And each time a new query/subreport refers back to the initial query with the date range question, the program again asks for the range.
About the only thing that comes to mind is to use a temporary table to hold the record numbers that I want to use for this report. That is, run a query that selects all record numbers within the requested date range. Then let all the queries support my report refer to this temporary table, limiting the report to applicable records. Then, when the report is done, empty the table. But this would require at least a little bit of code and I was trying to avoid using any. At first glance, it also seems like a complex way to do something that feels like it should be easy.
So, If I have
1. a query to count phone calls
2. a query to count meetings set up
3. a query to pull up a list of materials sent
4. a query to pull up a list of meetings arranged
5. a query to list all companies moved to the declined/dropped category
How do I avoid having every one of these ask me what the date range is for my data to be reported? I do not see how to do this report without subreports; and once I have multiple queries/subreports, I do not see how to avoid being asked repeatedly what date range to use for selecting data.
P.S. Are you old enough to recognize the initials with the quote at the end of my last message or just decide it was too tangential to think about? Probably you are too young to have the the phrase of bless your pea pickin' little heart.