Insert a table
When filling out a form, you can insert tables into rich text fields. When designing a form, you can insert layout tables to organize the form and repeating tables to allow users to enter information into the form.
Do one of the following:
Insert a table when filling out a form
- Place the insertion point in the field where you want to insert the table.
- On the
Table menu, point to
Insert, and then click
Table.
Note If the Table option is not available, you may be attempting to insert a table into a field for which this is not allowed. Try moving the insertion point to another field to see if you can insert a table there.
- In the Insert Table dialog box, select the number of rows and columns that you want in your table.
- In design mode, place your insertion point where you want to insert the layout table, and then click the task pane title bar.
Note If the task pane is not visible, click Task Pane on the View menu.
- On the task pane menu, click Layout.
- Under Insert layout tables in the Layout task pane, select the type of layout table you want.
Insert a repeating table (automatically create the data source)
Repeating tables are bound to repeating groups. Each column in a repeating table contains a control, and each control is bound to a field that is part of the repeating table's group. When you insert a repeating table, you can have Microsoft Office InfoPath 2003 automatically create these groups and fields.
- In design mode, place your insertion point where you want to insert the repeating table.
- If the Controls task pane is not visible, click More Controls on the Insert menu.
- In the Controls task pane, make sure the Automatically create data source check box is selected.
- Under Insert controls, click Repeating Table.
- In the Number of columns box in the Insert Repeating Table dialog box, enter the number of columns the table should have.
Note Repeating tables will always have just one repeating row in design mode (they can also have header rows and footer rows, which do not repeat). When users fill out the form, they can add as many rows as they need.
- The repeating table is created with a text box in each column. To convert the text box to a different type of control, right-click the control, point to Change To on the shortcut menu, and then click the control you want.
Note It is not recommended that you move an existing control into a repeating table, because the control's field will not be part of the table's group.
- To test the repeating table, click Preview Form on the Standard toolbar.
Insert a repeating table (bind to an existing group)
Repeating tables are bound to repeating groups. Each column in a repeating table contains a control, and each control is bound to a field that is part of the repeating table's group.
- In design mode, place your insertion point where you want to insert the repeating table.
- If the Controls task pane is not visible, click More Controls on the Insert menu.
- In the Controls task pane, make sure the Automatically create data source check box is cleared.
- Under Insert controls, click Repeating Table.
- On the first page of the Repeating Table Binding Wizard, select the repeating group you want to bind the table rows to, and then click Next. If your table will only have one column, you can select a repeating field instead of a repeating group.
Note If you want to create a new repeating group to bind the table to, right-click the group to which you want to add the repeating group, click Add on the shortcut menu, and then in the Add Field or Group dialog box, enter the repeating group's properties.
- On the second page of the Repeating Table Binding Wizard, add the columns you want to include in the table by double-clicking the fields in the Data binding list.
Note If you want to create a new field to add as a column, right-click the group to which the table is bound, click Add on the shortcut menu, and then in the Add Field or Group dialog box, enter the field's properties.
- To re-order the columns, select a column, and then click Move Up or Move Down.
- When you have specified the columns and the order of the columns, click Finish.
- To test the repeating table, click Preview Form on the Standard toolbar.