Orders have fallen in the last month and you are wondering whether you should send out another promotion. You decide to send one promotion to customers who have ordered recently and another to those customers whose last order was more than a month ago. Customers who haven't ordered in six months will be excluded from the mailing. To find out when each customer placed their last order, follow these steps:
- In the Database window, under Objects, click Queries and then click the New button. Click Design View and then click OK. (In Word 2007, click the Create tab and then click Query Design in the Other group.)
- Double-click the Orders table.
- Double-click the CustomerID, CompanyName, and OrderDate fields from the field lists (Figure A).
- Right-click the Query grid and select Totals (Figure B).
- Click the drop-down arrow of the Totals cell under the OrderDate field and select Last (Figure C).
- Click Run.
The query Datasheet view lists each customer's name and last order date.
Miss an Access tip?
Check out the Microsoft Access archive and catch up on other 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.