andreadd
MIS
- Jan 15, 2008
- 67
CR2008 / Oracle view
it's me again with that time sheet report. I have everything running accurately but I am hoping to increase performance.
i have a main form and 7 subreports. these reports are placed in a group footer. each subreport represents a day of the week. Our workweek starts on Friday and goes to Thursday. This report will be run via cViewServer daily.
so on my main form i have the following formula in the record selection:
{mydatetimefield} in ((CurrentDate-DayofWeek(CurrentDate,crFriday)+1) to CurrentDate)
on my subreports I have this in my record selection:
cdate({mydatefield}) = Date(DateAdd("d", (-DayOfWeek (CurrentDate,7 ))+3, CurrentDate))
this is Monday's subreport record selection formula. Now before anyone asks, I did make both the formulas use the same field and it did not make any difference in performance.
what I use for linking the subreport to the main form is 2 formulas placed in all for the employee name and for the client id.
I do not have any date linking going on.
what I am hoping to accomplish is to place something in record selection or link or even group selection that will narrow the number of records the subreport is looking at - even past30days is better than everything. If my current database has 10000 rows and 9 meet the criteria for Monday the way things are currently is the subreport looks at all 10000 rows. I am hoping to cut that down some and have no clue how. I would greatly appreciate any help I can get.
it's me again with that time sheet report. I have everything running accurately but I am hoping to increase performance.
i have a main form and 7 subreports. these reports are placed in a group footer. each subreport represents a day of the week. Our workweek starts on Friday and goes to Thursday. This report will be run via cViewServer daily.
so on my main form i have the following formula in the record selection:
{mydatetimefield} in ((CurrentDate-DayofWeek(CurrentDate,crFriday)+1) to CurrentDate)
on my subreports I have this in my record selection:
cdate({mydatefield}) = Date(DateAdd("d", (-DayOfWeek (CurrentDate,7 ))+3, CurrentDate))
this is Monday's subreport record selection formula. Now before anyone asks, I did make both the formulas use the same field and it did not make any difference in performance.
what I use for linking the subreport to the main form is 2 formulas placed in all for the employee name and for the client id.
I do not have any date linking going on.
what I am hoping to accomplish is to place something in record selection or link or even group selection that will narrow the number of records the subreport is looking at - even past30days is better than everything. If my current database has 10000 rows and 9 meet the criteria for Monday the way things are currently is the subreport looks at all 10000 rows. I am hoping to cut that down some and have no clue how. I would greatly appreciate any help I can get.