Link to home
Start Free TrialLog in
Avatar of Skip_Laughlin
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.

ASKER CERTIFIED SOLUTION
Avatar of Mike McCracken
Mike McCracken

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Skip_Laughlin
Skip_Laughlin

ASKER

I found it before I read your suggestion, but it was in the code run prior to calling the report.  Jeez, can't believe how long I've been looking in the wrong place.

Thanks for responding
Glad I could help

mlmcc