cj001,
It is probably giving you exactly what you are asking for. I doubt you are encountering an unknown bug or the results do to a faulty install of VFP. According to your code m.adepamt will hold the Sum of the field deprttl in the blkbook alias. So, the thing to look at is the blkbook alias and find out why you have duplicate records in there. The SUM function is doing exactly what it should be doing, the problem is with your table/cursor. Just before the SUM statement Browse blkbook and look at it to see if it has the records you expect it to have. I'll bet you find duplicate records in there.
Slighthaze = NULL
[ul][li]FAQ184-2483
An excellent guide to getting a fast and accurate response to your questions in this forum.[/li][/ul]