Access 2013 - Dbase (.dbf) Table Import option

Anonymous
2013-02-03T16:16:55+00:00

I need to be able to import read/write Dbase dbf tables - yes they are still around so why has the standard option that was in Access 2010 gone?

I have seen mention of ISAM, which is gobbledegook to me. So please a simple answer - what do I need to install or change and how do I do it?

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
Answer accepted by question author
ScottGem 68,840 Reputation points Volunteer Moderator
2016-09-08T09:08:22+00:00

Was this answer helpful?

60+ people found this answer helpful.
0 comments No comments

158 additional answers

Sort by: Newest
  1. Anonymous
    2015-02-03T19:42:28+00:00

    I've got it!

    I successfully imported .dbf to Ms Access 2013. It took 5 secs for 1MB File about 11,000+ rows and algorithm can be further optimized.

    Supports basic types TEXT,MEMO,DATETIME,DOUBLE,YESNO data types.

    The algorithm goes like this:

    1. Connect to .dbf using ADO
    2. Extract columns names and datatype
    3. Generate Access CREATE TABLE DDL from extracted columns of .dbf
    4. Execute obtained CREATE TABLE DDL.
    5. Extract rows from .dbf then insert to new table.
    6. Import finished.

    Anyone still interested? :D

    Was this answer helpful?

    0 comments No comments
  2. George Hepworth 23,120 Reputation points Volunteer Moderator
    2015-02-03T16:51:41+00:00

    Excellent. Where there's a will, there's a way.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2015-02-03T16:31:59+00:00

    I'll try to create a function that imports .dbf to new access table.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2015-02-03T16:08:01+00:00

    Dear friend,

    I'm not an expert in Ms Access. But I'll explain to you of what I only know.

    In ms access, there is a way to manipulate files .csv, .xls, .mdb, etc. not by using wizard, but by coding (programmatically) in VBA (Code Builder). I used this code below to connect and throw sql commands to .dbf files (could be DDL or DML you can check visual foxpro reference to sql commands it supports)

    You can start with this and take a first stab:

        'You can run this without referencing ADO Library

        Dim cn As Object

        Dim rs As Object

        Dim strSql As String

        Dim strConnection As String

        Set cn = CreateObject("ADODB.Connection")

        strConnection = "Provider=Microsoft.Jet.OLEDB.4.0;" & _

            "Data Source=C:\YourDir_thatcontains_dbf_files\;" & _

            "Extended Properties=dBase IV"

        strSql = "SELECT [COL1],[COL_ETC] FROM DBF_TABLE"      'do not include extension name

        cn.Open strConnection

        Set rs = cn.Execute(strSql)

        While Not rs.EOF

          Debug.Print rs.Fields("COL1").Value & vbTab & rs.Fields("COL_ETC").Value

          'Or do somethin else you need to do

          rs.MoveNext

        Wend

        rs.Close

        Set rs = Nothing

        cn.Close

        Set cn = Nothing

    Was this answer helpful?

    0 comments No comments