The information in this article applies to:
SUMMARYData from a Microsoft Access database can be used in Visual FoxPro by creating an ODBC data source and a remote view. The ODBC data source must be created using the ODBC Administrator, and the remote view can be created interactively using the View Designer or programmatically using the CREATE SQL VIEW command. MORE INFORMATIONSteps to Create ODBC Data SourceTo use data from a Microsoft Access database, an ODBC data source must first be created in the ODBC manager. Depending on the operating system being used, the ODBC manager is located in either the Control Panel or the Microsoft Visual FoxPro Program Manager group.
Steps to Create a Remote View of the Data InteractivelyOnce a data source has been created for the Microsoft Access database, a remote view can be created using the View Designer. Make sure a Visual FoxPro database is open, and follow these steps:
Steps to Create a Remote View of the Data ProgrammaticallyAlternatively, the remote view can be created programmatically by using the CREATE SQL VIEW command. It is assumed that there is an ODBC data source named AccessTest and a table in the Microsoft Access database named Customers.Type the following commands in the Command window or in a new program:
The results should be displayed in a Browse window.
Additional query words:
Keywords : kbcode kbDatabase kbVFp300 kbVFp500 kbVFp600 |
Last Reviewed: August 10, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |