AlvarHanso
MIS
I am running a report for the payroll of the specific company. The report is grouped by Organizational Units, then further grouped by department. The report displays earnings for each employee in these departments. So it could show someones name twice, yet the record would be associated with a different earning code. I.E. Adam Majid,Reg,40 hours,PayAmount (then next line)Adam Majid,OT,10 hours,PayAmount. Well the report works fine except some of the Organizational Units have letters in their code (64a,45l, and so on). When these records are printed it shows the same line twice. I.E. Adam Majid,Reg,40 hours,PayAmount (then next line) Adam Majid,Reg,40 hours,PayAmount. This creates doubled subtotals and grand totals and essentially makes the report non-functional for these units. I have looked in the Db and it seems that there are no duplicate records, and the Reg and Overtime hours are correctly only entered once.
This is my selection statement:
{EPayHist.checkDate} in {?CheckDateStart} to {?CheckDateEnd} and
{EPayHistDetail.hours} <> 0.00 and
{EPayHistDetail.det} = "E"
We also have a preprocess SQL statement running each time the report is run:
UPDATE EPayHistDetail INNER JOIN EInfo ON EPayHistDetail.id = EInfo.id SET EPayHistDetail.cc1 = [EInfo]![cc1], EPayHistDetail.cc2 = [EInfo]![cc2]
WHERE (((EPayHistDetail.cc1)=""));
cc1 = Organizational Unit
cc2 = Department
Maybe the preprocess is creating two records? But there are no duplicates in the Access Db. It only does this for OU's that have a letter in the code. Any help or suggestions are very much appreciated.Let me know if you need any more info as well.
This is my selection statement:
{EPayHist.checkDate} in {?CheckDateStart} to {?CheckDateEnd} and
{EPayHistDetail.hours} <> 0.00 and
{EPayHistDetail.det} = "E"
We also have a preprocess SQL statement running each time the report is run:
UPDATE EPayHistDetail INNER JOIN EInfo ON EPayHistDetail.id = EInfo.id SET EPayHistDetail.cc1 = [EInfo]![cc1], EPayHistDetail.cc2 = [EInfo]![cc2]
WHERE (((EPayHistDetail.cc1)=""));
cc1 = Organizational Unit
cc2 = Department
Maybe the preprocess is creating two records? But there are no duplicates in the Access Db. It only does this for OU's that have a letter in the code. Any help or suggestions are very much appreciated.Let me know if you need any more info as well.