View Single Post
  #54  
Old February 13th, 2008, 01:48 PM posted to microsoft.public.access,microsoft.public.dotnet.framework.adonet,microsoft.public.dotnet.languages.vb
John
external usenet poster
 
Posts: 409
Default Opening Access db via DAO in vb.net

To run synchronising on the backend db which is a replicated access database

"Norman Yuan" wrote in message
...
With all other replies being post, I am just wondering: why on the earth
do you need to use DAO in .NET?


"John" wrote in message
...
Hi

In my vb.net app I am trying to open a db via DAO as below;


Imports dao

Dim dbSynch As dao.Database
dbSynch = DBEngine(0).OpenDatabase("C:\MYDB.MDB")


The problem is that on the last line I am getting the error 'DBEngine' is
a type and cannot be used as an expression. What am I doing wrong?

Many Thanks

Regards