Results 1 to 5 of 5

Thread: Connect with protected MS Access database

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2005
    Posts
    105

    Connect with protected MS Access database

    Hi all,

    How can I connect with MS Access Database protected with username and password.

    When I try to do so an error occured,

    Help needed

    Nasreen

  2. #2
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Connect with protected MS Access database

    nasreen,

    An error occurred? An answer occured also... So show us yours and we'll show you ours.
    Last edited by randem; Apr 24th, 2005 at 12:30 PM.

  3. #3
    Frenzied Member moinkhan's Avatar
    Join Date
    Jun 2000
    Location
    Karachi, Pakistan
    Posts
    2,011

    Re: Connect with protected MS Access database

    Quote Originally Posted by nasreen
    Hi all,

    How can I connect with MS Access Database protected with username and password.

    When I try to do so an error occured,

    Help needed

    Nasreen
    VB Code:
    1. Dim myCon As New Connection
    2. Dim x As New Recordset
    3.  
    4. Private Sub Form_Load()
    5. myCon.ConnectionString = "Provider = Microsoft.Jet.OLEDB.4.0;Data Source=c:\db1.mdb;" & "Jet OLEDB:Database Password=moin;"
    6. myCon.Open
    7. Set x = myCon.Execute("Select * from Table1")
    8. Text1.Text = x.Fields(1).Value
    9.  
    10. End Sub

  4. #4
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: Connect with protected MS Access database

    How can I connect with MS Access Database protected with username and password.
    How did you protect the database with a Username? Through the User and Group accounts?
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  5. #5
    Hyperactive Member
    Join Date
    Mar 2005
    Location
    Manila, Philippines
    Posts
    486

    Re: Connect with protected MS Access database

    this might help
    try

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