Mohammed,
>i get error message alias'curbilldata' is not found
> m.divi = curbilldata.divi
So please spend some time learning how to use the debugger and the Data Session Window and step through your code line by line and find out exactly why the alias is not open, you'd have found out on your own that it was open and then was closed and the dummy alias appeared in it's place and you'd have realized that the IN 0 was missing. You'd have also been able to see that afer your SUM command that the table was being set to end-of-file and thus causing your initial question.
Perhaps you should look at getting Nancy Folsom's book on debugging in VFP from hentzenwerke.com. It'd sure save a lot of day long, 40 message threads that a tiny bit of debugging work on your side could solve in a few minutes if you'd go through the effort.