A family of Microsoft relational database management systems designed for ease of use.
Access 2013 - Dbase (.dbf) Table Import option
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.
158 additional answers
Sort by: Newest
-
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:
- Connect to .dbf using ADO
- Extract columns names and datatype
- Generate Access CREATE TABLE DDL from extracted columns of .dbf
- Execute obtained CREATE TABLE DDL.
- Extract rows from .dbf then insert to new table.
- Import finished.
Anyone still interested? :D
-
George Hepworth 23,120 Reputation points Volunteer Moderator2015-02-03T16:51:41+00:00 Excellent. Where there's a will, there's a way.
-
Anonymous
2015-02-03T16:31:59+00:00 I'll try to create a function that imports .dbf to new access table.
-
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