splitting records in report equally to no. of users

splitting records in report equally to no. of users

Hi,

I want to assign the no. of records in a report to the number users after the equal division of the records.

say, I have 500 records in a report i want to assign it to the 4 users. so I will do the division of 500/4.

When the no. of records divisible by no. of users (i.e.) when remainder is 0, then the code is working for me. But when it is not divisible (i.e.) remainder > 0 then my code not working. the remainder no. of records is missing for me during assignment to the users.

Please help me to proceed with this.

Thanks,
ITKES