>I don't know why the foxpro count 1 at detail (child record), when that parent really have no child!?
Hi, Jasper: Check what your default value is in your counter variable. It may be re-setting to 1 for each group/parent record, and should re-set to 0. It also may count 1 for each parent record, and then increment for each child line after the first.
Barbara