Results 1 to 4 of 4

Thread: Connection String For Locked Access Database

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2002
    Location
    INDIA
    Posts
    169

    Angry Connection String For Locked Access Database

    Hi,

    I have been trying to open a connection with an ACCESS database but am not able to do so.

    PLZZ HELP

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

    your code?

  3. #3
    Fanatic Member
    Join Date
    Oct 2001
    Location
    didn't decide yet
    Posts
    566
    here is a typical connection to a locked access db
    VB Code:
    1. DBSource = DBProvider & "Data Source=" & App.Path & "\" & DBNAME
    2.         Set cnn = New ADODB.Connection
    3.         cnn.ConnectionString = DBSource
    4.         cnn.Properties("Jet OLEDB:database Password").Value = "password"
    5.         cnn.Open

    but there is a database forum for that
    Come and get our ISDN CallerID http://www.3wm.biz

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Apr 2002
    Location
    INDIA
    Posts
    169

    Here is my connection string

    Public Sub Conn()
    Dim strCon As String
    Set cn = New ADODB.connection
    strCon = "Provider=Microsoft.Jet.OLEDB.3.51;uid=admin;pwd=try;Persist Security Info=false;Data Source=" & _
    App.Path & "\stock.mdb"
    cn.Open strCon

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