Hello Mike, Olaf, Jockey2 and JrbBldr,
My apologies for not responding quickly to your most recent suggestions.
I should have clarified that I DO indeed want to create a report that contains about 500 variables (defined WITHIN the Report Designer, rather than outside of the Report Designer). If my logic is sound (no guarantee of that), I should be able to make one report do the work of multiple reports, simply by re-assigning these variables outside of the report. For many years, I have been using variables extensively for data groupings, but have not yet attempted to use variables for each individual field. It will be a lot of work to set up the report initially, but the payoff should be increased flexibility.
Here are 3 simple examples showing how someone could use this:
- Report#1 needs to analyze the selling price of a vehicle, along with the service contract price, Gap insurance price, Tire and Wheel protection, etc.
- Report#2 needs to analyze the cost of the same categories (rather than the selling price).
- Report#3 needs to analyze the profit of the same categories (rather than the selling price or the cost).
To make each report work properly, all I would need to do is to re-assign variables for "Field01", "Field02", "Field03", etc. before the report runs, as follows:.
Report#1 (Price analysis) would be:
--- "Field01 = VehPrice"
--- "Field02 = SvcContPrice"
--- "Field03 = GapInsurPrice"
--- "Field04 = TireWhlPrice"
Report#2 (Cost analysis) would be:
--- "Field01 = VehCost"
--- "Field02 = SvcContCost"
--- "Field03 = GapInsurCost"
--- "Field04 = TireWhlCost"
Report#3 (Profit analysis) would be:
--- "Field01 = VehProfit"
--- "Field02 = SvcContProfit"
--- "Field03 = GapInsurProfit"
--- "Field04 = TireWhlProfit"
Data Grouping: Let's further assume that I want to sort and subtotal each of the above categories by ModelYear, Make, Model, then Color. I would simply assign the subtotals as follows:
--- "Group1 = ModelYear"
--- "Group2 = Make"
--- "Group3 = Model"
--- "Group4 = Color"
Based on simply assigning a specific variable (ex: "Field01 = VehPrice"), the report will automatically calculate the correct totals, averages, etc. for EACH data grouping. For example, "Field01sum_grp1" is defined within the Report Designer to calculate totals of whatever is defined as "Field01" ("VehPrice" in the case of Report#1) within the first data grouping ("ModelYear" if we are talking about "Group1").
In reality, there would be 18 or 19 fields listed horizontally across the report (not including the fields for data grouping). This is the reason that I would like to find a way to automate the assigning of variables within the Report Designer.
At any rate, I hope this clarifies my earlier posts, and your follow-up questions.
Thank you all for your input. As always, it is appreciated.
Dave