I'm trying to find a way to manipulate specifically named objects on the form via name.
Currently Ill run code like this to find every object:
I want to try and avoid looping through all 60+ objects on my forms doesens of times for every user operation. Does anyone know of a way of specifying an object directly by using the name?
Currently Ill run code like this to find every object:
Code:
Function (i as Integer)
Dim MyObject as Object
For Each MyObject in me.Controls
If MyObject.Name = "Level" & i Then
myObject.Value = "X"
End If
Next
I want to try and avoid looping through all 60+ objects on my forms doesens of times for every user operation. Does anyone know of a way of specifying an object directly by using the name?