Oy!
CR 10
SQL 2000/Solomon
I am creating an overtime report. One department, APS, keeps time differently and separately from the rest of the company. Most departments use weekly time reporting, APS uses daily. The report specs state the report must be based on {pe_date} period end date. The periods end in weekly intervals on Sunday. I am trying to use a subreport for the APS time since their time keeping is done in different tables. There are 2 parameters in the main report that I pass to the subreport; {?PeriodEndDate} and {?PeriodsBack}, which is the number of periods back from {?PeriodEndDate} that HR wants to see. I use a formula to determine how far back to go based on {?PeriodsBack}. The formula is {?PeriodEndDate} - ({?PeriodsBack} * 7). This gives me my range.
What I am stuck on is how to apportion {PeriodEndDate} to APS time when they are keeping time daily. There is nothing to link the subreport to the main report except the params since they come from dissimilar table structures. The main report uses LABHDR, Labor Header and LABDET, Labor Detail to collect units of hours. APS uses TIMHDR and TIMDET to collect units of hours.
TIAFTH
CR 10
SQL 2000/Solomon
I am creating an overtime report. One department, APS, keeps time differently and separately from the rest of the company. Most departments use weekly time reporting, APS uses daily. The report specs state the report must be based on {pe_date} period end date. The periods end in weekly intervals on Sunday. I am trying to use a subreport for the APS time since their time keeping is done in different tables. There are 2 parameters in the main report that I pass to the subreport; {?PeriodEndDate} and {?PeriodsBack}, which is the number of periods back from {?PeriodEndDate} that HR wants to see. I use a formula to determine how far back to go based on {?PeriodsBack}. The formula is {?PeriodEndDate} - ({?PeriodsBack} * 7). This gives me my range.
What I am stuck on is how to apportion {PeriodEndDate} to APS time when they are keeping time daily. There is nothing to link the subreport to the main report except the params since they come from dissimilar table structures. The main report uses LABHDR, Labor Header and LABDET, Labor Detail to collect units of hours. APS uses TIMHDR and TIMDET to collect units of hours.
TIAFTH