I have a table called tblGDP. I want to have the ability to calculate the subtotals using VBA and post it to tblGDP. I can calculate the grand totals in TBLGDP no problem but the subtotals for each field, I don't have a clue. I need a way to calculate subtotal after each field by inserting a row after the last record for that field.
Currently:
ID FIELD GAS PRICE
1 BOYCOTT 23.00
2 BOYCOTT 100.00
3 FULLTON 50.00
4 RAYTON 70.00
Grand Total 243.00
I need:
ID FIELD GAS PRICE
1 BOYCOTT 23.00
2 BOYCOTT 100.00
Subtotal Boycott 123.00
3 FULLTON 50.00
Subtotal Fullton 50.00
4 RAYTON 70.00
Subtotal RAyton 70.00
ID is an autogenerated number
Thanks
Currently:
ID FIELD GAS PRICE
1 BOYCOTT 23.00
2 BOYCOTT 100.00
3 FULLTON 50.00
4 RAYTON 70.00
Grand Total 243.00
I need:
ID FIELD GAS PRICE
1 BOYCOTT 23.00
2 BOYCOTT 100.00
Subtotal Boycott 123.00
3 FULLTON 50.00
Subtotal Fullton 50.00
4 RAYTON 70.00
Subtotal RAyton 70.00
ID is an autogenerated number
Thanks