I am trying to design a report useing vb report writer .
The report is a profit and loss account.
I have a table in my DB called accounts, which containds the account name , type(incom/expense) accumulated balance.
I want to print the account name and their individual balances , and a total at the end of each group for example , a total for all the income accounts...
eg...
Bank £12000
Cash £300
£12,300
Total
rent £300
Esb £400
Total £700
Overall Total £11,600
I thought I could do a group by query as follows but it is not correct
"Select AccountName, AccBAL,SUM (AccBAl), TypeID from Accounts Group By TypeID"
Any suggestions on how I could achieve this would be greatly appreciated