RobertMottram
Programmer
I am new to using Class Modules and I am trying to create a collection of a collection (or I think this is the right way!)
I am trying to write an interface to run reports. I am creating a clase module to try and make things simplar in the program (as I am getting confused what everything it.
I have a class modules with a collection of REPORTS. This contains information about each report, ie filelocation, reportname etc. what I now want to add is a set of PARAMETERS. These are parameters which can be set to the report to change the selection statment of the report. Each parameter needs a number of bit of information, including Parametername, DataType, ParameterInReport etc.
The way I was trying to do this was create a collection of the report collection, but I am have trouble doing this. I was hoping some one might be able to help me. I would like to have a situation where I could have a line like this.
So I could then be able to pull any parameter for any report. The main problem is I am unsure how the create the second collection so it will create a collection for each report in the REPORT collection
Thanks for any help you could give
Rob
I am trying to write an interface to run reports. I am creating a clase module to try and make things simplar in the program (as I am getting confused what everything it.
I have a class modules with a collection of REPORTS. This contains information about each report, ie filelocation, reportname etc. what I now want to add is a set of PARAMETERS. These are parameters which can be set to the report to change the selection statment of the report. Each parameter needs a number of bit of information, including Parametername, DataType, ParameterInReport etc.
The way I was trying to do this was create a collection of the report collection, but I am have trouble doing this. I was hoping some one might be able to help me. I would like to have a situation where I could have a line like this.
Code:
CurrentParamName = ReportList.Report(1).Parameter(1).Name
Thanks for any help you could give
Rob