Activity 10.03 – Creating MySQL stored procedures and using them in VBA
Continuing with your conversion project, you have noticed two dropdowns using lists provided by the VBA code. You also noticed the lists are not filtered, so you have decided the best way to handle these two lists is to convert them to stored procedures because they can return a recordset. In this activity, we will be creating MySQL stored procedures and using them in VBA. Follow these steps to complete this activity:
- Create two new stored procedures named
cmbGroups
andcmbCountry
. - Refer to Exercise 8.11 for the specific steps, if required. Be sure to change the names and SQL as required for each list.
- Take note of field names with a space. Remember to change the square brackets
[]
to backticks''
. - Modify the VBA code to use the new stored procedures with a passthrough query.
After performing the steps, the expected output should look like this: