Thanks very much for that.
The formula is working but my parameter is not working correctly since I added this formula. For example: an account has 3 transactions posted in October 2011 but 9 in total for ytd the result shows 9 transactions *3 = 27 lines. So if 1 invoice dated 1.10.11 there are 9 lines dated 1.10.11 and have the same reference number but description is picked up from each different 9 transaction therefore only 1 transaction out of 9 is correct, and so on with other 2 invoices for October.
I am very new to Crystal, your help is very appreciated.
please please please help
Thanks
Edited by Barb - 18 Nov 2011 at 6:03am