I want to change the caption of a label in a form by using a variable. During module execution, I have a variable called strLabel that is set to the label name. Note that the variable is part of the object name, not the object's value. I then have module code like the following:
Application.Forms("frmTools"!(strLabel).Caption = "Hammer"
But this syntax is not correct (it turns red).
What should the syntax be?
TIA,
GGleason