Hi All,
I have a table with "Table Name,Employee No.,Line No." as keys. You can enter the same employee no. more than once in this table. Now i want to count the employee numbers in this table onces. for example, If i have 1222, 1222, 1222, 1333, 1333, 1444 employees numbers recorded in the table, i want to count 1222 as one record, 1333 as one and 1444 as one. So i should have a total of 3 records. Also, i want to do this counting withing a specified date range. Say i want all the records in the table withing say 010117...010317 date range which i get using Filter := "Employee".GETFILTERS; expression in the onPreReport. Any idea on how to do this please? Thanks.
0
Answers
Now OnAfterrecord write this condition
IF EmpVar <> Table."Employee NO" THEN
BEGIN
EmpCount +=1;
END;
EmpVar := Table."Employee NO";
Do not clear any var.
And apply filter on predataitem
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/
Is your Employee no is integer type?
ya that code will work just take code type variable. by mistake i wrote integer type.
and regarding filter i said apply date filter on predata item