Solved

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

Posted on 2000-03-13
3
402 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
Comment Utility
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
Comment Utility
krees changed the proposed answer to a comment
0
 
LVL 1

Accepted Solution

by:
krees earned 20 total points
Comment Utility
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

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…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
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…

772 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

10 Experts available now in Live!

Get 1:1 Help Now