Hi
I have multiple reports and I want to incorporate it in the main report. There's only one subreport which will only show specific data based on a specific account (field) it currently shows. The code below that I've created is not working since I don't know where I will place it in the report's event procedure:
If Account.Value = "Account1" then
Me!Child26.SourceObject = "report1"
ElseIf Account.Value = "Account2" then
Me!Child26.SourceObject = "report2"
ElseIf Account.Value = "Account3" then
Me!Child26.SourceObject = "report3"
Else
Me!Child26.SourceObject = "report4"
End if
I also placed the following set up in the properties of Child26 (under the Data tab):
Source Object = Blank
Link Child Fields = Date;Account
Link Master Fields = Date;Account
Hope you'll be able to help me, I've been sitting for hours trying to think of different solutions. And if you have a better solution, I will appreciate it.
Thanks in advance.
I have multiple reports and I want to incorporate it in the main report. There's only one subreport which will only show specific data based on a specific account (field) it currently shows. The code below that I've created is not working since I don't know where I will place it in the report's event procedure:
If Account.Value = "Account1" then
Me!Child26.SourceObject = "report1"
ElseIf Account.Value = "Account2" then
Me!Child26.SourceObject = "report2"
ElseIf Account.Value = "Account3" then
Me!Child26.SourceObject = "report3"
Else
Me!Child26.SourceObject = "report4"
End if
I also placed the following set up in the properties of Child26 (under the Data tab):
Source Object = Blank
Link Child Fields = Date;Account
Link Master Fields = Date;Account
Hope you'll be able to help me, I've been sitting for hours trying to think of different solutions. And if you have a better solution, I will appreciate it.
Thanks in advance.