So I have a form broken into three sections.
First section is associate time oriented items (scheduled hours, absent, overtime, available time, production hours, production percentage).
Second section is a set of 5 different environments were time is collected where associates work. (Mode time, % Mode Time, Production Hours in Mode, Documents viewed). Many of the fields in the second section are calculated. Only the Mode Time and Documents viewed is hard coded. Once we have % Mode Time, Production Hours and Docs/Hour it compares the results to see if the Docs/Hour fall within a range. If they meet the range then a Yes/No is checked signifying the associate met the requirements for an incentive within that environemnt/mode then a calculation of potential pay out.
Third section is quality (Number of claims reviewed, errors and a calculated field of quality in percentage form.)
When I click my calculate button everything runs smoothly and provides the totals I need. But if the Scheduled Hours = Absent Hours it runs the calculations for Available Time, Production Hours and Percent Production but then halts and gives me an OverFlow Error. Nothing in the second or 3rd section is completed.
I can post the code if necessary but there is quite a bit with all the calculations and IF/Then statements. Wanted to know if anyone had any thoughts off the top of their head or if I need to move forward and go ahead and post the code? The fields originally were set to Double but I tried Integer and Long Integer from reading in these forums but still receiving the OverFlow error. Something is hanging it up when it gets to the second section and I don't know what.
Thoughts? or should I just post the code?
Thanks.
Joshua
First section is associate time oriented items (scheduled hours, absent, overtime, available time, production hours, production percentage).
Second section is a set of 5 different environments were time is collected where associates work. (Mode time, % Mode Time, Production Hours in Mode, Documents viewed). Many of the fields in the second section are calculated. Only the Mode Time and Documents viewed is hard coded. Once we have % Mode Time, Production Hours and Docs/Hour it compares the results to see if the Docs/Hour fall within a range. If they meet the range then a Yes/No is checked signifying the associate met the requirements for an incentive within that environemnt/mode then a calculation of potential pay out.
Third section is quality (Number of claims reviewed, errors and a calculated field of quality in percentage form.)
When I click my calculate button everything runs smoothly and provides the totals I need. But if the Scheduled Hours = Absent Hours it runs the calculations for Available Time, Production Hours and Percent Production but then halts and gives me an OverFlow Error. Nothing in the second or 3rd section is completed.
I can post the code if necessary but there is quite a bit with all the calculations and IF/Then statements. Wanted to know if anyone had any thoughts off the top of their head or if I need to move forward and go ahead and post the code? The fields originally were set to Double but I tried Integer and Long Integer from reading in these forums but still receiving the OverFlow error. Something is hanging it up when it gets to the second section and I don't know what.
Thoughts? or should I just post the code?
Thanks.
Joshua