HOW TO: Use Visual FoxPro DBC Files in Microsoft Access 2000 (197893)
The information in this article applies to:
This article was previously published under Q197893 Moderate: Requires basic macro, coding, and interoperability skills.
For a Microsoft Access 2002 version of this article,
see
286815. IN THIS TASK SUMMARY You can use data from a Microsoft Visual FoxPro database in
Microsoft Access 2000 if you have added a Visual FoxPro ODBC data source as a
User Data Source in the ODBC Data Source Administrator. This article describes
how to do so. The latest Microsoft Visual FoxPro ODBC driver is in
the Microsoft Data Access Components (MDAC), which can be downloaded from the
following Microsoft Web site: This article is divided into two parts: the
first part explains how to set up the data source for Visual FoxPro, and the
second part explains how to link tables in Visual FoxPro.
back to the top
Creating the Data Source in Control Panel- Click Start, point to Settings, and then click Control
Panel.
- In Control Panel, double-click the ODBC Data Sources
(32bit) icon.
- In the ODBC Data Source Administrator box, click the User
DSN tab, and then click Add.
- In the Create New Data Source dialog box, select the
Microsoft Visual FoxPro driver, and then click Finish.
- In the ODBC Visual FoxPro Setup dialog box, in the Data
Source Name box, type a name for your data source.
- In the Description box, type a description. For the
Database type option, select Visual FoxPro database (DBC). In the Path box,
type the path to your Visual FoxPro database or click Browse to locate the
file. Click OK.
The data source is created.
back to the top
Linking a Visual FoxPro Table To link a Visual FoxPro table from a Microsoft Access database,
follow these steps:
- Open the sample database Northwind.mdb.
- On the File menu, point to Get External Data, and then
click Link Tables.
- In the Link box, in the Files Of Type list box, select ODBC
Databases().
- In the Select Data Source box, on the File Data Source tab,
select Visual FoxPro.
- In the Configure Connection box, select Visual FoxPro
database (.DBC), type or select the path to the file, and then click OK.
The link to the table is created.
back to the top
Modification Type: | Minor | Last Reviewed: | 7/16/2004 |
---|
Keywords: | kbhowto kbHOWTOmaster KB197893 kbAudITPro |
---|
|