This Microsoft Access USES OF MACROS exercise is provided to allow potential course delegates to assess their suitability for the Wise Owl ACCESS INTRODUCTION FOR DEVELOPERS course only, and may not be reproduced in whole or in part in any format without the prior written consent of Wise Owl.
A full answer to this exercise is provided as part of the training course!
| 1) | Download the files needed to start this exercise: exercise-521.zip (and click here if you experience any problems unzipping this file after downloading it). |
| 2) | Create a form called frmOwnerCriteria which allows you to choose an owner: |
Your form might look something like this
|
|
| 3) | Apply validation so that you see this message if you leave the owner's name blank: |
Your macro should also take you to the blank owner field
|
|
| 4) | Create a report called repPetsByOwner which lists out all of the pets for the owner specified: |
This is what you will see if you choose Fred Flintstone
|
|
| 5) | If you have time, add code to your macro which displays a message similar to the one shown below if the selected owner doesn't have any pets in the database: |
You can use the Column(0) property of a combo box to pick up on its first (displayed) column
|
|
| 6) | Save and close any open forms. |
Thank you for showing an interest in this Access Introduction for Developers training course! As mentioned above, full answers to this and other exercises are provided on the course. On all Wise Owl scheduled courses delegates can take away these model answers (together with their own efforts!) on a free USB stick.
Recommended sites: C# corner | Computer tutorials | Training classes