DB Query to add records to a table
-
On the DB Query Action page of a form, or on the Extended
Properties page of a Data Access activity, click
Configure.
The Database Query page appears.Tables is selected and all tables within the selected database are available on the Table list.By default,
- On the Table list, select the table to add records for. All columns within the selected table appear.
- For Record, click Add.
- On the All Columns list, select the columns to add records to, such as ContactName, Address, and Phone.
- Map the values to the selected columns.
-
To insert multiple records in a table at runtime:
Advanced tab, ensure the Add and Multi-Select table properties are set to Yes.In the Extended Properties page of the Table control >
- On the Database Query page, select the Perform Multiple Inserts check box.
-
Select either option:
-
Insert All Rows: Inserts all rows for the selected columns.
-
Insert Selected Rows: Inserts selected rows for the selected columns.
-
- For information on selection criteria and the DB query outcome, see Insert multiple records into a database.
- Click OK.
- Click Close.