Designing a DataEnvironment Object

See Also

At design time, you can use the Data Environment designer to create a DataEnvironment object. The DataEnvironment object can include Connection and Command objects, hierarchies (relationships between Command objects), groupings, and aggregates. Before designing your DataEnvironment object, you should determine what information you want to present, identify the databases that contain the information, and determine your run-time objective (for example, creating a Data Report or Hierarchical FlexGrid control).

Before you can access the Data Environment designer, you must reference it in Visual Basic.

To reference the Data Environment designer

  1. On the Project menu, click References.

  2. From the References dialog box, select Data Environment 1.0, and then click OK.

To add a Data Environment designer object to a new Visual Basic project

  1. From the New tab of the New Project dialog box, choose Standard EXE project, and then click Open.

  2. From the Project menu, choose Add Data Environment.

    The Data Environment designer is added to your Visual Basic project, the Data Environment designer window appears, and a Connection object is added to your Data Environment.

Once you have added a Data Environment designer to your project, you can create a Connection; see the procedure in Connection Objects. Once a Connection is created, you can add Commands to it; see the procedure in Command Objects.