|
-
Nov 10th, 2003, 05:01 AM
#1
Thread Starter
Lively Member
DAO with VB .net
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
with Regards
sameer Mulgaonkar

Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|