>I have the following code:
>
>
>use generatepk exclusive
> SCAN
> REPLACE gpk_currentnumb with 0
> endscan
>
>
>I get the error "Variable "GPK_CURRENTNUMB" is not found.
>
>This field does exist in the generatepk table. I even put a list stru right before the scan command and it shows that gpk_currentn... does exist.
>
>any ideas?
>
>Thanks,
>Paul
You said you found the problem, but your code will run faster if you remove the SCAN/ENDSCAN and change the REPLACE line to:
REPLACE ALL gpk_currentnumb with 0
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer