Microsoft Excel
Class modules exercise
Average difficulty

This Microsoft Excel CLASS MODULES exercise is provided to allow potential course delegates to assess their suitability for the Wise Owl ADVANCED VISUAL BASIC FOR APPLICATIONS course only, and may not be reproduced in whole or in part in any format without the prior written consent of Wise Owl.

Exercise: Classes in Access - adding new football game

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

1) Download the files needed to start this exercise: exercise-413.zip (and click here if you experience any problems unzipping this file after downloading it).
2) Create a class for adding a new football result to the Results table:
Exercise screen-shot 642 Each new instance of your class will create one record in this table
3) Here is one suggestion for what the code to consume your class might look like:
Exercise screen-shot 643 This tests a read-only property called IfOk before calling the Add method to create the new result record
Training exercise hint Feel free to accomplish this in a completely different way.  That's the beauty of working with classes - there is no "right" answer!

Thank you for showing an interest in this Advanced Visual Basic for Applications 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 � Wise Owl Business Solutions Ltd 2007.  All rights reserved.  Design by Branches.