| re: Report performance question
Excellent tip thanks.
On the other issue, I think we have found the cause.
The report recordsource SQL had a sub-query in it. This sub-query doesn't
have any WHERE criteria limiting it to where (tblJobs.DateCompleted) Is
Null).
It appears that Jet doesn't pass, through inheritance, the criteria to the
subquery. When I manually inserted the WHERE clause into the sub-query, the
report ran just as fast.
Thanks for your help too.
<jimfortune@compumarc.com> wrote in message
news:1108066436.951390.196260@o13g2000cwo.googlegr oups.com...[color=blue]
> Mark 123 wrote:[color=green]
> > It was in the recordsource anyway:
> >
> > WHERE (((tblJobs.DateCompleted) Is Null) AND
> > ((tblReportsTeamWorkloadDialogSubformSource.LimitT oSelect) Like
> >[/color]
>[/color]
IIf([forms]![frmReportOptionsTeamWorkloadWorkform]![Sub0].[Form]![SelectTeam[color=blue][color=green]
> > Member].[Value]=-1,True,'*')));[/color]
>
> Hmmm. That IIf looks like a good candidate for optimization. I'd
> create the SQL string in VBA and get rid of it.
>
> James A. Fortune
>[/color] |