Results 1 to 3 of 3

Thread: Open Password Protected Database

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2009
    Posts
    99

    Question Open Password Protected Database

    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")

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: Open Password Protected Database

    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)?

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Dec 2009
    Posts
    99

    Re: Open Password Protected Database

    yes i just convert a vb6 programe to vb.net and now want to protect my database how can i do this ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width