I am trying to open a msacess database with DAO in VB.net
my code is

Dim DBENG As DAO.DBEngine
Dim DB As DAO.Database
Dim RS As DAO.Database
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
DB = DBENG.OpenConnection("C:\MTO\MTODATA.MDB")
RS = DB.OpenRecordset("mtomaster")
End Sub

But when i run the same there is an error
An unhandled exception of type 'System.NullReferenceException' occurred in DAO.exe

Additional information: Object reference not set to an instance of an object.

Please help