>>If this is the actual code, you never USE CuDedEmp. In step 8 you Copy to CuDedEmp, but you miss a line to actuallu USE CuDedEmp.
>
>Sorry, I omitted the following code:
>* step 0A--create cursor CuDedEmp--all deduction data by employee
> CREATE CURSOR CuDedEmp;
> (iEmp I,;
> cNameLast C(25),;
> cNameFrst C(25),;
> cNameMI C(1),;
> cNameSort C(51),;
> yDeduct Y,;
> cAggType C(1))
As I can see it, there are ony two possibilities, which both should be easy to check.
1. The cursor CuDedEmp is not "active" anymore.
2. Your second select statement finds no matching errors.
You may disagree, but I am 10000 % sure. Add few checks, like a browse, and you will have a surprise.