Getting started

Quick Start

Details

There are mainly three levels of objects a database applications deals with: connections, tables and fields. A connection refers to a database (MS Access *.mdb file, SQL Server database, Oracle database etc.). A database contains some tables and a table divides into some fields (also called columns). ADO uses objects called Connection, Recordset and Field to represent these tree levels. You are using these ADO objects to access the database at code level. A user needs a graphical interface to access the database. blueshell Active Tables delivers the components used to build such an interface.

Connections, Recordsets and Fields in bAt

DataEnvironment hosting the connection(s) and tables

In Visual Basic 6 you should use a DataEnvironment to host your connection(s). See the Visual Basic documentation for details, here are the main steps:

  1. Add a DataEnvironment to your project
  2. Access the properties of a connection in the DataEnvironment and
    1. Pick up a suitable OLEDB provider
    2. Provide all the information VB needs to access the connection
  3. Add tables as needed:
    1. Select the connection
    2. Click "Add command"
    3. Access the properties of the command and select the table

atb Control representing a table

With bAt you are using an atb control to represent a table.

  1. Add a new form to your project.
  2. Add an atb control from the toolbox to the form. Now your screen looks like this:
  3. Now click the atb control in order to select it and press F4 to view the properties window.
  4. In the properties window scroll to DataSource and select your DataEnvironment from the drop down list.
  5. Use the drop down list of DataMember to select a table.

atb's column objects representing the fields

Each atb control has a set of column objects to represent the fields.

  1. Right click on the atb control and pick Properties from the context menu to access atb's property pages.
  2. At the property page Columns press the Complete button to add a column for each field of the table. Now your screen should look like this:
  3. Press the OK button of the Property pages.

Now you may compile and start your application. You may access your table through the form and the atb control showing a grid. Up to here it's what all the other grids in the world can do, too.