Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. sponsors. rss.
 From: Jim Lloyd
  Where is Jim Lloyd?
 Hove
 United Kingdom
 Jim Lloyd
 To: Cetin Basoz
  Where is Cetin Basoz?
 Izmir
 Turkey
 Cetin Basoz
 Tags
Subject: RE: Querying VFP database using Access 2007
Thread ID: 204753 Message ID: 204791 # Views: 29 # Ratings: 0
Version: Not Applicable Category: ODBC, ADO and OLEDB
Date: Sunday, November 23, 2008 6:50:00 PM         
   


> > Hello,
> >
> > I'm attempting to query a VFP database from Access 2007. When I try to import from a table using 'external data > more > ODBC database' I can choose the table from the database but I'm presented with an error message saying
> >
> > 'Invalid field definition 'DELETED()' in definition of index or relationship'.
> >
> > Any thoughts as to what's causing this would be much appreciated. I've successfully queried the database using Excel, but I'd like to be able to make more presentable reports based on the query.
> >
> > I'm connecting using the Visual FoxPro Driver under 'machine data sources'.
> >
> > Many thanks
> >
> > Jim
>
> Jim,
> IMHO trying to get VFP data from Access 2007 does help you only to lose hairs. Instead (if you wouldn't use
> VFP coding to send to Access, some HTML or .Net code doing that ...) use Excel to get the data first and then get from Excel. It is ridicilous you can easily use an UDL file from Excel but not from Access (maybe expreinced users can do it through adp files).
>
> -You should first forget using ODBC and download VFPOLEDB driver
> -Open Excel
> -Data\From other resources\From Data connection wizard
> -Select Other/Advanced [Next] "Microsoft OLEDB providder for Visual FoxPro" [Next]
> -Complete it specifying the database in 'Connection' tab
>
> And maybe it would be much easier to install SQL server express and a linked server to VFP. Then you could use ODBC to SQL server (provided you need this for querying only). Another easy option is to use ODBC drivers from Sybase 'Advantage Database'. Sybase kindly published the ODBC and OLEDB drivers that can work with VFP tables (local server mode is free).
>
> Cetin Basoz



Cetin,

I can get the data into Excel and then import the data into Access, but I'll need to open the Excel file every time I want to refresh the data, which is awkward.

I've successfully managed to connect in Excel using the OLEDB, what advantages does it have over ODBC?

I'll give the SQL server express route a shot.

Thanks for the advice,

Jim



COMPLETE THREAD
Querying VFP database using Access 2007 Posted by Jim Lloyd @ 11/23/2008 9:21:48 AM
RE: Querying VFP database using Access 2007 Posted by M. Akram Bhatti @ 11/23/2008 10:22:29 AM
RE: Querying VFP database using Access 2007 Posted by Anders Altberg @ 11/23/2008 11:07:23 AM
RE: Querying VFP database using Access 2007 Posted by Jim Lloyd @ 11/23/2008 11:56:26 AM
RE: Querying VFP database using Access 2007 Posted by Anders Altberg @ 11/23/2008 1:03:52 PM
RE: Querying VFP database using Access 2007 Posted by Cetin Basoz @ 11/23/2008 2:09:36 PM
RE: Querying VFP database using Access 2007 Posted by Jim Lloyd @ 11/23/2008 6:50:00 PM
RE: Querying VFP database using Access 2007 Posted by Cetin Basoz @ 11/24/2008 12:50:53 AM