Microsoft Visual Basic
Messages and variables exercise
Average difficulty

This Microsoft Visual Basic MESSAGES AND VARIABLES 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: Numbers in input boxes

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

1) Create a new module called MultiplyTwoNumbers.
2) Create a new procedure which asks you for two numbers and then displays their product (see below):
3) Ask the user for the first number.
Exercise screen-shot 389
4) Ask the user for the second number.
Exercise screen-shot 390
5) Display the result.
Exercise screen-shot 391
6) Ensure you use variables wherever possible.
Training exercise hint Since input boxes always return a string value you will need to convert the numbers entered to integers using the CINT function.
7) Close the module saving the changes.

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.