I have the same question but with some detail for calculation opening balance in Ledger as on 01-02-2007 and current month transactions (data) upto 28-02-2007 or some other dates in running total

My Detail Data is

Date account dr cr
01/01/2007 0180101 8345 0
02/01/2007 0180101 0 13400
03/01/2007 0180101 2535 0
04/01/2007 0180101 3555 0

I want ledger from...