I currently use a module to pick up fields from a report, manipulate the fields and use the result to populate other fields within the report. If I include the module within the report it works fine.
I now wish to use the same module from other reports. I have included the code within a Module and declared it as a Public Function but am having difficulty obtaining the required fields from the reports. If I use Reports![ReportName].Field that will work for the current report named ReportName. How can I pick up the required fields for report names different from ReportName? Just using Me. gives a compiler error.
Thanks
I now wish to use the same module from other reports. I have included the code within a Module and declared it as a Public Function but am having difficulty obtaining the required fields from the reports. If I use Reports![ReportName].Field that will work for the current report named ReportName. How can I pick up the required fields for report names different from ReportName? Just using Me. gives a compiler error.
Thanks