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: Most helpful
-
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
-
Anonymous
2015-02-03T15:49:42+00:00 Thanks! I got excited of what you've said.
Actually I got the idea in importing/manipulating .csv, .xls , etc using ADO Library in VBA.
Then I thought that would it be possible also in .dbf coz ODBC supports dBase files/ vfpTables.
So i just changed the connection string used in importing/manipulating other filetypes by just using this one I searched in Google (sorry I seldom use Bing. :D)
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\YouDir_thatcontains_dbf_files\;Extended Properties=dBase IV;
Someone must create a library that executes DDL/DML compatible with VisualFoxPro sql commands. I don't know, I'm just hypothesizing. Hahah :D
-
Anonymous
2015-02-03T03:29:48+00:00 Please elaborate further. What exactly do you mean?