hi synapsevampire,
I'm not sure if I understand your mess (my fault due to my English) but here is a example data of my record
Fields among other in a free fox2x table:
tp-field n(5) // is to sort
title# c(10) // is a title# as string like "0001"
pos# c(10) // is a position# as string like "0001"
txtfield c(50) // is item-descriptions
price long(20,2) // currency
alter bool(.f.) flag // if true don't sum and print it //in a different color
eventual bool(.F.) flag // as alter field
tp-field title pos txtfield price alter
1 0001 0001 item-description 120,00 .f.
2 0001 0002 item-description 120,00 .f.
3 0001 0003 item-description 120,00 .f.
//alter
4 0001 0004 item-description 120,00 .t.
5 0001 0005 item-description 120,00 .t.
6 0001 0006 item-description 120,00 .t.
//normal
7 0002 0001 item-description 120,00 .f.
8 0002 0002 item-description 120,00 .f.
9 0002 0003 item-description 120,00 .f.
the report should look like
offer:
Title# pos# txtfield price //normal-item1
Title# pos# txtfield price //normal-item2
Title# pos# txtfield price //normal-item3
//(alternative group)
alter describ header
Title# pos# txtfield price //alternative1-item1
Title# pos# txtfield price //alternative1-item2
Title# pos# txtfield price //alternative1-item3
alter sum
//(alternative end)
Title# pos# txtfield price //normal-item4
Title# pos# txtfield price //normal-item5
//an other (alternative group)
Title# pos# txtfield price //alternative2-item1
Title# pos# txtfield price //alternative2-item2
Title# pos# txtfield price //alternative2-item3
//(alternative end)
Title# pos# txtfield price //normal-item6
Title# pos# txtfield price //normal-item7
.....
sum of all price except of alter
of course I can make it with out group but I thought it will be more easy with group.
Ron