Microsoft Visual Basic
Modifying queries exercise
Average difficulty

This Microsoft Visual Basic MODIFYING QUERIES exercise is provided to allow potential course delegates to assess their suitability for the Wise Owl ACCESS VISUAL BASIC course only, and may not be reproduced in whole or in part in any format without the prior written consent of Wise Owl.

Exercise: Changing the underlying query for a form

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

1) Download the files needed to start this exercise: exercise-263.zip (and click here if you experience any problems unzipping this file after downloading it).
2) Create a query to show each player's name, together with his age (you will need to add an extra field to the Players table).
3) Set criteria for the query so that it only shows players over 25 years of age.
4) Save the query as PlayersAboveACertainAge.
5) Create a new form based on the query, saving it as PlayersAboveACertainAge.
6) Now create a procedure which:
  • Prompts the user for a new age limit;
  • Modifies the query's SQL property;
  • Opens the form to display the results.

Thank you for showing an interest in this Access Visual Basic 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.