Results 1 to 3 of 3

Thread: dBase IV -> ADO

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 1999
    Location
    Belgium
    Posts
    98

    Post

    Hi,

    Can somebody tell me how I can make connection to
    a "dBase IV" file (*.dbf) using ADO.

    R@emdonck

  2. #2
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844

    Post

    Hello

    Code:
        Dim cn As ADODB.Connection
        Dim rs As ADODB.Recordset
        
        Set cn = New ADODB.Connection
        
        'open connection to FOLDER with DBF file
        cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\MyDirWithData\;Extended Properties=DBase IV"
        
        Set rs = cn.Execute("Select * from Customers")	'name of DBF file here
        
        MsgBox rs.Fields(1).Value
        
        cn.Close
        
        Set cn = Nothing
    Enjoy

  3. #3
    Hyperactive Member
    Join Date
    May 1999
    Location
    Reynosa, Mexico
    Posts
    274

    Post

    Another tool could be the 'DataDirect Connect ODBC' from Merant Intersolv. This is a set of ODBC drivers to access to almost all databases. You can download an evaluation copy from www.intersolv.com.

    Good look!


    Edited by Tonatiuh on 02-29-2000 at 12:51 PM

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