Hi
Iam using this code to open an access database but it is password protected where to add the password?
Code:Dim db As dao.Database
db = DAODBEngine_definst.OpenDatabase(My.Application.Info.DirectoryPath & "\my.mdb")
Printable View
Hi
Iam using this code to open an access database but it is password protected where to add the password?
Code:Dim db As dao.Database
db = DAODBEngine_definst.OpenDatabase(My.Application.Info.DirectoryPath & "\my.mdb")
Generally you don't want to be using DAO at all unless you have some very specific reason to be using it. Data access should be performed through ADO.NET objects, specifically for an access database, the oledb database objects.
Is there a reason you are using DAO (other than maybe you are trying to migrate something from VB6 or VBA in access over to .NET)?
yes i just convert a vb6 programe to vb.net and now want to protect my database how can i do this ?