Skip_Laughlin
asked on
Subreport does not refresh if using conditional selection formula
I am using VB6, the OCX, and CR6, with Access databases.
I have a report which has two, linked subreports. Both subreports work fine running out of the OCX if I only select one record and it runs fine in the CR Developer against the entire Access database.
But in either case if I use a conditional selection formula such as Mid({table.lastname},1,1) = "B", then one of the subreports will not fire or run.
I've noticed that if one subreport has data, then the other subreport is not populated. However, if the first subreport has no detail, then the 2nd one runs and is properly populated.
Do I need to pass the selection formula to the subreports somehow or is there some way to force the subreport to refresh?
Thanks in advance. I've been struggling with this for months and only recently found this site.
I have a report which has two, linked subreports. Both subreports work fine running out of the OCX if I only select one record and it runs fine in the CR Developer against the entire Access database.
But in either case if I use a conditional selection formula such as Mid({table.lastname},1,1) = "B", then one of the subreports will not fire or run.
I've noticed that if one subreport has data, then the other subreport is not populated. However, if the first subreport has no detail, then the 2nd one runs and is properly populated.
Do I need to pass the selection formula to the subreports somehow or is there some way to force the subreport to refresh?
Thanks in advance. I've been struggling with this for months and only recently found this site.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Glad I could help
mlmcc
mlmcc
ASKER
Thanks for responding