This Microsoft Access RECORDSETS 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.
A full answer to this exercise is provided as part of the training course!
| 1) | Download the files needed to start this exercise: exercise-449.zip (and click here if you experience any problems unzipping this file after downloading it). |
| 2) | Create a new procedure which asks the user for the name of a new toy: |
Use the InputBox function, and store the toy chosen in a variable
|
|
| 3) | Add code to this macro so that it stores the name of this new toy as a new record in the Product table, using the AddNew method. |
| 4) | If you have time, amend this macro so that if you type in a toy which already exists, you get a warning message and the duplicate toy name is not added: |
A typical error message if you type in a duplicate
|
|
| 5) | Save and close your new module. |
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.
Recommended sites: C# corner | Computer tutorials | Training classes