FoxPro 2.6 to ACCESS

Posted on 2003-11-10
Last Modified: 2010-05-03

I need a function in VB6 that will either import data from FP 2.6 tables or using VBA automate the same process.  I cannot use the import function in ACCESS to do this, because it needs to be automatic.  Please provide example code, no links.

Thanks in advance,
Question by:aj85

Accepted Solution

Goofytouy earned 400 total points
ID: 9715749

On a form, you must put 2 data controls bounded to the source DB in Fox 2.6 and state the Connection property to FP 2.6

The 2nd data control, must be bounded to the target DB, Connection Access.
I presume you know the fields definition of the source DB and you have copied it to the target DB.

Let's presume you have 10 fields on each base, source data control named Source, and target db name Target

Private Sub moverecords()
        Do While Not Source.Recordset.EOF
              For N=0 to 9        && 9 is because from 0 to 9 you have 10 items, and field indexes start in 0
              Next N
End Sub

Hope this example, helps.


Author Comment

ID: 9979312
I am working on this I will get back to you shortly.


Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…
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…

867 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

19 Experts available now in Live!

Get 1:1 Help Now