Solved

How to ceate ADO 'DSN-Less connection' for Visual Foxpro

Posted on 2000-03-13
3
410 Views
Last Modified: 2013-12-25
Can I create ADO 'DSN-Less connection' for Visual Foxpro 6.0 free tables.

Eg.: object.DataSource = <DSN Name>
I want to use "C:\MyDirectory\"

Is it possible, If yes How
0
Comment
Question by:akulap
  • 3
3 Comments
 
LVL 1

Expert Comment

by:krees
ID: 2653967
Hi there

To create an ADO DSN-less connection you must specify in your ADODB.Connection object the string supplied as your datasource for the object.

For example:

dim adoconn as adodb.connection

adoConn.ConnectionString = "driver={Visual FoxPro Database}; datasource=C:\MyDir;"

Hope this works for you...
0
 
LVL 1

Expert Comment

by:krees
ID: 2653972
krees changed the proposed answer to a comment
0
 
LVL 1

Accepted Solution

by:
krees earned 20 total points
ID: 2653980
Sorry there was an error on the DSN

Hi there

To create an ADO DSN-less connection you must specify in your ADODB.Connection object the string supplied as your datasource for the object.

For example:

dim adoconn as adodb.connection

adoConn.ConnectionString = "driver={Microsoft Visual FoxPro Driver}; datasource=C:\MyDir;"

Hope this works for you...
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

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…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

773 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