Create an update query (MDB)

Microsoft Office Access 2003

Show All Show All

Create an update query (MDB)

  1. Create a query with the tables or queries that include the records you want to update.

    ShowHow?

    1. In the Database window, click Queries Button image under Objects, and then click New on the Database window toolbar.
    2. In the New Query dialog box, click Design View, and then click OK.
    3. In the Show Table dialog box, click the tab that lists the tables or queries whose data you want to work with.
    4. Double-click the name of each object you want to add to the query, and then click Close.
    5. Add fields to the Field row in the design grid, and if you want, specify criteria and a sort order.
    6. To view the query's results, click View Button image on the toolbar.
  2. In query Design view, click the arrow next to Query Type Button image on the toolbar, and then click Update Query.
  3. Drag from the field list to the query design grid the fields you want to update or you want to specify criteria for.
  4. In the Criteria cell, specify the criteria if necessary.
  5. In the Update To cell for the fields you want to update, type the expression or value you want to use to change the fields, as shown in the following illustration.

    Enter an expression to change a group of records

  6. To see a list of the records that will be updated, click View Button image on the toolbar. This list won't show the new values. To return to query Design view, click View Button image on the toolbar again. Make any changes you want in Design view.
  7. Click Run Button image on the toolbar to update the records.