How to Calculate the Ending balance for MainAccount for particular Date?

Hi All ,

How to Calculate the ending balance for Main Account in our Customized form.

In GL—>Trial Balance —> Ending Balance is there as display method. Same display method is used in my form

but it’s not work.

My scenario is that the User select the Main Account ,then the respective ending balance to be shown as of the current Date.

Any body ,please help me to solve the above issue.

Thanks & Regards,