To create a table using subforms

You can create a table using subforms. Subforms can contain a variety of objects including buttons, text fields, and other subforms. The flow direction of the subform indicates how the contained objects will be arranged. Typically, you will create tables by using the Table object in the Object Library palette. If you need to create a complicated table where the columns do not line up, you can use subforms.

  1. Start the table:

    • In the Object Library palette, click the Standard category and drag a Subform object onto the form.

    • Resize the subform to match the required width of the table.

    • Expand the height of the subform so that you can add one or more child subforms.

    • Type a name for the subform in the Name box in the Binding tab of the Object palette. For example, type TableParent.

    • In the Accessibility palette, select Table from the Subform Role list.

  2. Create a table header:

    • Drag another Subform object into the TableParent subform.

    • Set the width of the header subform to match the width of its parent subform and set the height of the subform to match the required height of the header row.

    • Type a name for the subform in the Name box in the Binding tab of the Object palette. For example, type TableHeader.

    • In the Accessibility palette, select Header from the Subform Role list.

  3. Add text for the column headers:

    • Drag a Text object into the TableHeader subform.

    • Double-click the text in the Text object and type a name for the column.

    • Repeat as many times as required to add additional headers to the table.

  4. Create a body row that will act as the repeating row in the table:

    • Drag another Subform object into the TableParent subform.

    • Set the width of the body row subform to match the width of its parent subform and set the height of the body row subform to match the required height of the body row.

    • Type a name for the subform in the Name box in the Binding tab of the Object palette. For example, type TableBodyRow.

    • Add the same number of fields to go under the headers that you added in step 3 to display the data values in the table. Set the size of the fields.

    • In the Layout palette, select None from the Caption list.

    • In the Accessibility palette, select Body Row from the Subform Role list.

  5. Select the TableParent subform, click the Subform tab of the Object palette, and select Flowed from the Type list.

  6. In the Object palette, click the Binding tab and select Repeat Subform For Each Data Item.

  7. (Optional) Consider enhancing the table as follows:

    • Add borders and shading for table elements by using the Border palette.

    • Specify overflow leaders and trailers for the rows of the table.

To create a table containing variable-width cells

  1. Create two or more tables. Each table should have one body row. The first table should have a header row, and the other tables should have only body rows.

  2. Arrange the tables one below the other.

  3. Wrap all these tables in a parent subform.

  4. Adjust the width of each cell as required.

  5. Set the parent subform to Flowed.

// Ethnio survey code removed