Update query: Difference between revisions
TOstryzniuk (talk | contribs) m →Part 1: Append query steps with one example |
TOstryzniuk (talk | contribs) m Pagasa to review and see if she can follow steps with this example. hard to write up! |
||
| Line 1: | Line 1: | ||
Also referred to as a query type - APPEND | |||
This article explains how to write a bulk update query to a data field using Access in centralized front end ([[CFE]]). | This article explains how to write a bulk update query to a data field using Access in centralized front end ([[CFE]]). | ||
| Line 5: | Line 7: | ||
The example below: | The example below: | ||
*in the "R_dc_treat" field in "L_log", there are erroneous values of "-1" however, all of these values must be replace with the value "DC". | *in the "R_dc_treat" field in "L_log", there are erroneous values of "-1" however, all of these values must be replace with the value "DC". | ||
Steps broken down into 4 parts | |||
==Part 1== | ==Part 1== | ||
Set up | Set up a selection query | ||
*this allows you to look if the update you're are planning is going to do what you need it to do before you actually proceed to part 2. | *this allows you to look if the update you're are planning is going to do what you need it to do before you actually proceed to part 2. | ||
*Open [[CFE]] | *Open [[CFE]] | ||
| Line 25: | Line 27: | ||
**Go back to DESIGN VIEW. Make any changes if needed. | **Go back to DESIGN VIEW. Make any changes if needed. | ||
==Part 2== | ==Part 2== | ||
Change this from a Selection Query to and Append query | |||
that will actually make the change you set up. | |||
**Go to TAB: Query Tools - Design | **Go to TAB: Query Tools - Design | ||
**Select and SAVE as : Query Type - '''APPEND''' | **Select and SAVE as : Query Type - '''APPEND''' | ||
*** | ***notice that the symbol beside the query you named will be different. | ||
** | **notice that the row that was labelled sort has not changed to: '''Update to'''. | ||
== | ==Part 3== | ||
in the first column in the Update to field, type in: "DC" | *in the first column in the '''Update to''' field, type in: "DC" | ||
*in the second column, first row, remove | *in the second column, first row called Field, remove NewValue: "DC" | ||
* | *SAVE again as a APPEND - query type. | ||
==Ready change data== | ==Part 4-Ready to change data== | ||
Press the red ! run button. | Press the red ! run button. | ||
*query has done it job. | *query has done it job. | ||