Procedure for using a Session object
All database applications are automatically provided with a Session object that encapsulates the default BDE session. You can create, and manipulate additional session components as needed.
If you intend to add another Session object, follow the sequence in this procedure for adding data objects to the design surface:
Add the Session object.
Add a Database object to your form (if accessing tables through a BDE alias). It is automatically linked to the Session object already on the form.
Set the Database object’s databaseName property to the name of the BDE alias, and set its active property to true.
Add a Query object. It is automatically linked to the Session and Database objects already on the form or report.
Set the Query object’s SQL property, then set its active property to true.