We read your photo as:

How do I create queries in MS Access to add new fields and combine fields from multiple tables?

Computer Science

ScanSolve AI Answer

Step-by-step solution

31 steps

Here are the steps to complete the tasks:

QUERY ONE: Creating queries with new fields

  1. Go to the Create tab on the ribbon.

  2. In the Queries group, click Query Design.

  3. In the Show Table dialog box, select the personal details table and click Add, then Close.

  4. Double-click on the fields Paynum, Forename, Department, and Birthdate to add them to the query grid.

  5. In the next empty field column in the query grid, type `Age

    Date()-[Birthdate]in theField` row.

  6. Click Run in the Results group on the Design tab to view the query results.

  7. Click Save on the Quick Access Toolbar or File > Save.

    Type Personnel ages as the query name and click OK.

    QUERY TWO: Create another select query using fields from various tables

  8. Go to the Create tab on the ribbon.

  9. In the Queries group, click Query Design.

  10. In the Show Table dialog box, select personal details, Appointment, and Payments tables.

    Click Add for each, then Close.

  11. Double-click on the following fields to add them to the query grid

    • From personal details: Paynum, Surname, Department
    • From Appointment: Appointed, Salary
    • From Payments: Tax, Medical aid, Pension
  12. In the next empty field column in the query grid, type NET SALARY:[SALARY]-[TAX]-[MEDICAL AID]-[PENSION] in the Field row.

  13. Click Run in the Results group on the Design tab to view the query results.

  14. Click Save on the Quick Access Toolbar or File > Save.

    Type net salaries as the query name and click OK.

    QUERY THREE: CREATING CROSSTAB QUERIES

  15. Go to the Create tab on the ribbon.

  16. In the Queries group, click Query Wizard.

  17. Select Crosstab Query Wizard and click OK.

  18. In the first step of the wizard, select `Table

    personal detailsand clickNext`.

  19. For the row heading, select Nationality and click Next.

  20. For the column heading, select Department and click Next.

  21. For the calculation, select Paynum and choose Count as the function.

    Ensure Yes, include row sums is selected. Click Next.

  22. Type Department by nationality summary as the query name.

  23. Click Finish to view the results.

    QUERY FOUR: CREATING ACTION (UPDATE) QUERY

  24. Go to the Create tab on the ribbon.

  25. In the Queries group, click Query Design.

  26. In the Show Table dialog box, select the appointment table and click Add, then Close.

  27. In the Query Type group on the Design tab, click Update.

  28. Double-click on the Salary field to add it to the query grid.

  29. In the Update To row for the Salary field, type [salary]*1.15.

  30. Click Run in the Results group on the Design tab.

    A warning message will appear indicating that you are about to update records. Click Yes to proceed.

  31. Open the appointment table to verify that the salaries have been increased by 15%.

Was this helpful?

Still stuck on this one?

Ask a follow-up, and the answer starts from this question.

Got a different question?Ask your own question