Thanks, that worked.
Glad you've sorted it. For the record there are a few other useful wallets commands that hopefully you won't need but are good to know:
-repairwallet
-salvagewallet
-zapwallettxes (fixes useless stuck and conflicted unconfirmed transactions from attempted double spends etc)
And don't forget the old "delete everything except wallet.dat, open dash-qt.exe and let it sync"

our blockchain is not that big, so starting fresh is still an option.