DB Query to update database records
-
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 update records for. All the columns within the selected table appear.
- For Record, click Update.
- On the All Columns list, select the columns to update records for, such as ContactName, Address, and Phone.
- To perform multiple updates, click Perform Multiple Updates check box.
-
Configure your query based on specific conditions.
Example
To retrieve the ContactName, Address, and Phone records for the cities of London and Berlin, specify the condition as:
-
Column: City(String), Operator: Equal To, Criteria: London, Logic: AND.
-
Click Add .
-
Column: City(String), Operator: Equal To, Criteria: Berlin.
-
Click Add .
-
- Click OK.
- Click Close.