Access reports that summarize data from multiple tables can be difficult to design from scratch. For example, suppose you need a report that shows the total number of orders for each employee, as well as the total sales from those orders. Instead of using the Access report design window to design a report from three tables—Orders, Employees, and Order Details—you can use the report wizard to create the report from a single Totals Query. To do so, follow these steps:
- In the Database window, click Queries and then New.
- Click Design View and then OK.
- Press [Ctrl] while selecting Orders, Employees, and Order Details tables.
- Click Add.
- Double-click Employee ID and Last Name from the Employees table.
- Double-click Order Date from the Employees table.
the following expression in the next cell:
- Press [Enter].
- Click the Totals button in the Query Design toolbar.
- In the Totals cell under Order Date, select Count.
- In the Sort cell under Expression, select Descending.
- Save the Query as OrderTotal.
- Use the Report Wizard to create the report using all fields in the OrderTotal query.
Your report will list all employees and their total number of orders and total sales in descending order.
Miss a tip?
Check out the Microsoft Access archive, and catch up on our most recent Access tips.
Help users increase productivity by automatically signing up for TechRepublic's free Microsoft Office Suite newsletter, featuring Word, Excel, and Access tips, delivered each Wednesday.