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.
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.
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.
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.
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.
Select the TableParent subform, click the Subform tab of
the Object palette, and select Flowed from the Type list.
In the Object palette, click the Binding tab and select Repeat
Subform For Each Data Item.
(Optional) Consider enhancing the table as follows:
To create a table containing variable-width cellsCreate 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.
Arrange the tables one below the other.
Wrap all these tables in a parent subform.
Adjust the width of each cell as required.
Set the parent subform to Flowed.
|
|
|