Solved

Connect to Paradox database from VB.

Posted on 2001-08-21
5
1,805 Views
Last Modified: 2012-06-27
It is necessary to me to work with a database 'Paradox' from VB 6.0 and ADO.
What connection string me need for it?


0
Comment
Question by:kuzub
  • 3
  • 2
5 Comments
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 200 total points
Comment Utility
From this site:

http://www.able-consulting.com/ADO_Conn.htm

ODBC Driver for Paradox

oConn.Open "Driver={Microsoft Paradox Driver (*.db)};" & _
                   "DriverID=538;" & _
                   "Fil=Paradox 5.X;" & _
                   "DefaultDir=c:\dbpath\;" & _
                   "Dbq=c:\dbpath\;" & _
                   "CollatingSequence=ASCII;"

Note: MDAC 2.1 (or greater) requires the Borland Database Engine (BDE) to update Paradox ISAM fDBF files. (Q230126).

For more information, see:  Paradox Driver Programming Considerations

0
 
LVL 75

Expert Comment

by:Anthony Perkins
Comment Utility
0
 
LVL 14

Expert Comment

by:wsh2
Comment Utility
Courtesy of Dave_Greene

ADO Connection Strings
http://www.able-consulting.com/ADO_Conn.htm#RDSConnectProperty

ODBC Driver for Paradox

oConn.Open "Driver={Microsoft Paradox Driver (*.db)};" & _
                  "DriverID=538;" & _
                  "Fil=Paradox 5.X;" & _
                  "DefaultDir=c:\dbpath\;" & _
                  "Dbq=c:\dbpath\;" & _
                  "CollatingSequence=ASCII;"

0
 
LVL 14

Expert Comment

by:wsh2
Comment Utility
For the jet Engine use:

<----- Code Begin ----->

Sub OpenParadox(strDBPath As String)

   Dim cnnDB As ADODB.Connection
   Set cnnDB = New ADODB.Connection

'  Specify Paradox by using the Extended Properties
'  Paradox 3.x
'  Paradox 4.x
'  Paradox 5.x

   With cnnDB
      .Provider = "Microsoft.Jet.OLEDB.4.0"
      .Properties("Extended Properties") = "Paradox 5.x"
      .Open strDBPath
      Debug.Print .ConnectionString
      .Close
   End With

   Set cnnDB = Nothing

End Sub

<----- Code Begin ----->

0
 
LVL 14

Expert Comment

by:wsh2
Comment Utility
kuzub.. why the "B"?.. What was lacking in acperkin's response that was not worthy of an Excellent "A" grade?
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now