Microsoft Access
Creating subforms exercise
Average difficulty

This Microsoft Access CREATING SUBFORMS 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.

Exercise: Subform of pets by type

A full answer to this exercise is provided as part of the training course!

1) Download the files needed to start this exercise: exercise-523.zip (and click here if you experience any problems unzipping this file after downloading it).
2) Create two forms:
  • A normal form called PetsOfTypeMainForm, to show one pet type at a time
  • A tabular form called PetsOfTypeSubForm, to show one row per pet
3) Combine these two forms to create a subform - a suggestion for how this might look is shown below, but feel free to choose a different look:
Exercise screen-shot 947 Here the AllowAdding property of the subform has been set to No
4) If you have time, include a button in the footer of the main form, such that if you click on it you see the number of pets for this type:
Exercise screen-shot 948 This is hard - see hint below
Training exercise hint To do this, you need to refer to the subform as a control on the main form, then look at its Form property.  This gives access to the controls on the subform!
5) Save and close any forms that you have created.

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.

All content copyright Wise Owl Business Solutions Ltd 2008.  All rights reserved..