Microsoft Access
Uses of macros exercise
Average difficulty

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.

Exercise: Simple menu for database

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

1) Download the files needed to start this exercise: exercise-520.zip (and click here if you experience any problems unzipping this file after downloading it).
2) Create two simple forms using the wizard:
  • A form called frmOwnerSimple to view or edit owners
  • A form called frmPetSimple to view or edit pets
3) Create a simple menu form called frmMenu to look similar to that shown below:
Exercise screen-shot 916 All clutter (scroll bars, dividing lines, etc) has been removed from the form
4) Attach code to the form's Load event to ensure that it appears in the centre of the screen (restored) and not maximised.
5) Attach code to each of the buttons to:
  • Hide the menu form (you can refer to this as Me within your code);
  • Open the relevant form (depending on the button clicked).
6) Attach code to the Close event for each of your two input forms, so that when you close any form you return to the main menu (its Visible property is reset to True).
7) Check that your system works, then save and close all of your 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.

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