Problems closing some accounts on KMyMoney 5.1.2

I have a few KMyMoney accounts that I am unable to close. When I try to close these accounts (all of which have a zero balance), the “close” option is greyed-out. If I hover the mouse pointer over the “Close Account” button, the tool tip states that the account must have a zero balance. All these accounts are cash accounts associated with investment accounts that were used to receive dividends, interest payments, etc. The accounts definitely have a zero balance displayed on the home screen and when the account is accessed, but something in KMyMoney seems to think that the balance isn’t zero.

Any advice would be very welcome!

I’ve had a similar problem in the past. Try checking that all entries in the account have been reconciled, and also that there are no scheduled transactions still in place for the account.

Thanks - I’ll give that a try.