Results 1 to 2 of 2

Thread: Jet OLEDB initialisation information

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2010
    Posts
    4

    Red face Jet OLEDB initialisation information

    Sir,
    Code:
    Private Sub bkLstMn_Click()
    Dim sconnectString As String
    sconnectString = "Provider=Microsoft.Jet.OLEDB.4.0;jet OLEDB:Database user Name=Admin,Password=xxx;Mode=share Deny None;Data Source=C:\CLIBS 40.0\jolx.mdb"
    DataEnvironment1.Connection1.ConnectionString = sconnectString
    
    If DataEnvironment1.Connection1.State Then
        DataEnvironment1.Connection1.Close
    End If
    DataEnvironment1.Connection1.Open
    BookListRpt.Show
    
    Set DataEnvironment1 = Nothing
    End Sub
    accessing Ms Access password protected database from Visual Basic 6, it is prompt the message saying " Please Enter MS Jet OLEDB Initialisation Information"
    what to do . Please
    Last edited by surk; Jun 26th, 2010 at 05:50 AM.

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Jet OLEDB initialisation information

    As in your other threads, the problem is all about the connection string.

    At least one problem is that you have used the wrong character to separate the fields here:
    =Admin,Password=xxx
    You should correct that, and compare what you have to the examples given at www.connectionstrings.com (which all work for the situations described, you just need to change the file path etc).

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