Incase if the wallet.dat doesn't work on the latest version of Bitcoin core or might be corrupted there is another alternative you can dump the private keys from your wallet.dat through pywallet.
But before you dump private keys of your wallet.dat make sure to make a few backup copies of this file then proceed to dump private keys with pywallet.
To be able to dump the private keys from wallet.dat using pywallet you need to install python 2.7 first use this link below to download.
-
https://www.python.org/ftp/python/2.7.2/python-2.7.2.msiThen download the pywallet from here
https://codeload.github.com/jackjack-jj/pywallet/zip/masterAfter download, extract the file and copy all extracted files to the python27 folder mostly on drive C and then copy and paste wallet.dat on the same folder.
Open the python27 folder on the command prompt or select the python27 folder then hold shift then right-click and look for "Open command windows here".
Then paste this command below.
python pywallet.py --dumpwallet --datadir=. > wallet.txt
wallet.txt file should be your wallet private keys. Now you can use those private keys to import to another wallet like Electrum and check if one of your addresses has still had a balance or even just the history of the transaction made from your old wallet.