In a form that has a flowable layout, you may not know
how much data the data source contains; therefore, you cannot specify
how many rows the table should have. You have to set the table to
be dynamic. To do this, you include only one body row that is set
to repeat, depending on how much data there is in the data source.
-
Drag to select the rows that are below the first row.
-
Select Table > Delete > Row.
-
In the Hierarchy palette, select Table1.
-
Select Insert > Wrap in Subform.
This action creates
a section in the form that contains the table. You need to separate
this section from the remainder of the form to make it dynamically grow
to fit the data.
-
With the (untitled Subform) selected in the Hierarchy palette,
in the Object palette, click the Subform tab and, in the Content
list, select Flowed.
-
Rename the (untitled Subform) to
Table
.
-
In the Hierarchy palette, select HeaderRow.
-
In the Object palette, click the Binding tab and select Repeat
Row For Each Data Item.
Now you need to set the entire form
to flow.
-
In the Hierarchy palette, select the PurchaseOrder subform.
-
In the Object palette, click the Subform tab and, in the
Content list, select Flowed.
Setting the entire form to flow, formats each subform in the
form, one after another, leaving no space between them.
Click to continue:
Fixing the calculation for the Total field
|
|
|