Solved

Connect to Paradox database from VB.

Posted on 2001-08-21
5
1,966 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 200 total points
ID: 6410818
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
ID: 6410819
0
 
LVL 14

Expert Comment

by:wsh2
ID: 6410831
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
ID: 6410877
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
ID: 6417301
kuzub.. why the "B"?.. What was lacking in acperkin's response that was not worthy of an Excellent "A" grade?
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

695 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