Use the Data Environment Designer to visually create and modify the data environment of forms, form sets, and reports. When the Data Environment Designer window is active, Visual FoxPro displays the Data Environment menu, which allows you to manipulate data environment objects. To display the Properties window and Code window, right-click to display the Data Environment Designer shortcut menu, and then select Properties and Code.
A data environment defines the source for the data used in a form or report. This can include tables, views, and relationships. The data environment is saved with the form or report and can be modified whenever you are using the Report Designer or Form Designer.
When the data environment of a form or report is defined, Visual FoxPro automatically opens the tables or views when you open or run the file and closes them when the file is closed or released.