Posted 7 October 2020, 12:12 pm EST
What I’m trying to do is pass through a parameter passed to the main report and pass the parameter into the Datasource SQL statement for the subreport. Below is some code I found but it looks to be MS Access, We Are using MS SQL server.
Closest I’ve found for documentation for C1Reports - we are using the C1FlexReport
https://www.grapecity.com/blogs/parameter-handling-in-c1reports/
Section:
2. Passing Parameters from Main-Report to Sub-Report:
Field38.Subreport.DataSource.RecordSource = “PARAMETERS” & vbCrLf & "SubMinUnitPrice single " & MinUnitPrice & “;” & vbCrLf & “select * from Products where UnitPrice > [SubMinUnitPrice]”