VBA: Paradox import

Emperor

Board Regular
Joined
Mar 25, 2010
Messages
225
Hi all,

I am trying to import an Paradox database into Excel but I can't get it to work. My code did function for an Access database and it should be easy to change this to a paradox (*.db) database.

Code for Access-database:
Code:
Dim DB As DAO.Database
Dim Tbl As DAO.TableDef
Dim Fld As DAO.Field
Dim ws
Set ws = Worksheets("settings")
 
Dim DBString
DBString = ws.Range("G2").Value
 
Set DB = DAO.OpenDatabase(DBString)

What I have found is that in 'DAO.OpenDatabase' the connection is a setting which can be set to "Paradox 5.x"
But when I set it; e.q.
Set DB = OpenDatabase(DBString, False, True, "Paradox 5.x")
XL says that the path is incorrect.

Path in settings (G2) is : C:\Temp\database.DB

Any help is welcome!

Mathijs.
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

Forum statistics

Threads
1,224,564
Messages
6,179,543
Members
452,924
Latest member
JackiG

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top