Referencing a Subreport
I have searched through the forums, but have not found an instance of this yet. I apologize if i overlooked something.
I have a very complicated report which is a main report that is unbound and 3 subreports in the detail section of the unbound main report. I am getting all the correct information in my subreports, but I need to reference to one of the subreports from one of the other subreports. Here is what I was trying...
=(IIf([Reports]![Cattle Inventory Position Summary]![Cattle Inventory Positions].[Report]![Type]=[Type],[Reports]![Cattle Inventory Position Summary]![Cattle Inventory Positions].[Report]![Month1],0))
Basically what would happen is I would get a 0. The subs are grouped by FY and Type so what I was trying to do is if record=type then if record=feedyard then month1. When that didn't work I broke it down to what I displayed above. Any ideas would be appreciated.
I have searched through the forums, but have not found an instance of this yet. I apologize if i overlooked something.
I have a very complicated report which is a main report that is unbound and 3 subreports in the detail section of the unbound main report. I am getting all the correct information in my subreports, but I need to reference to one of the subreports from one of the other subreports. Here is what I was trying...
=(IIf([Reports]![Cattle Inventory Position Summary]![Cattle Inventory Positions].[Report]![Type]=[Type],[Reports]![Cattle Inventory Position Summary]![Cattle Inventory Positions].[Report]![Month1],0))
Basically what would happen is I would get a 0. The subs are grouped by FY and Type so what I was trying to do is if record=type then if record=feedyard then month1. When that didn't work I broke it down to what I displayed above. Any ideas would be appreciated.
Last edited: