
Filter data for subreport
Hi Gilles,
I may be wrong, but I believe that the records are returned to your
report based on the query. Then, your record selection formula is used to
restrict the records actually used in the report. If you want to restrict
the records being collected, then you have to fine tune your query, or
possibly base the report on a stored procedure or view that will collect
only the records that you need.
Bob Holmes
Quote:
> Hi
> Just posted a question but forgot this one.
> I have a sales report that compares sales for 3 years, divided either by
> regions, salesperson, customers category, etc.
> The database holds more than those 3 years but I want to select only those
3
> years for my report.
> But why does the subreport give me all the figures for all the years in my
> database when my record selection formula is for Y1, Y2 and Y3 ?
> Is there a "selection formula" I can supply in VB6 to filter the data for
> my subreport ?
> Have'nt found anything in the help file yet.
> Help would be appreciated.
> Using VB6 and CR6
> Thanks
> Gilles.
> Drummondville, Quebec, Canada.