By default, Access 97 uses DAO for data Access. But this so not so in Access 2000 and later, where ADO is the preferred method and DAO is an option. So, if you want to continue to use DAO, you must explicitly insert a reference to the DAO library.
Also, to avoid confusion, in all Dim statements prefix object types with the correct library. For example:
Dim DB As Database, MT As Recordset, vLinkNr
should be changed into
Dim DB As DAO.Database, MT As DAO.Recordset, vLinkNr
Hope this helps.