I'm trying to launch a second report in VB (viewer) when the user drills down on a group name in the viewer. I need to pass the group name to the next report, but I'm having great difficulty getting the syntax for retrieving the name. Here's the code I've been able to piece together:
Dim GR As ReportObjects
Set GR = CRReport.Areas("GH1").Sections(1).ReportObjects
LRU = GR("GroupName").Field.GroupNameFieldName
...Where "LRU" is the value I'm trying to pass on to the next report. Is there something wrong with this code? Thanks in advance.
Dim GR As ReportObjects
Set GR = CRReport.Areas("GH1").Sections(1).ReportObjects
LRU = GR("GroupName").Field.GroupNameFieldName
...Where "LRU" is the value I'm trying to pass on to the next report. Is there something wrong with this code? Thanks in advance.