CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2001
    Posts
    29

    Database link problem

    Can VB6 link with Office Access 2000 or even Office XP Access?


  2. #2
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878

    Re: Database link problem

    Dim sConn As String
    Dim cn as ADODB.Connection

    Set cn = New ADODB.Connection

    sConn = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
    "Data Source=" & DBNAME & ";Persist Security Info=False"
    cn.ConnectionString = sConn
    cn.Open sConn

    thta will connect you to Access db. Now you can create recordset and do anything you want

    Iouri Boutchkine
    [email protected]
    Iouri Boutchkine
    [email protected]

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

Featured