I have several controls names on a form that are similar – Tooth_A, Tooth_B, Tooth_C. I need to read the value of one of the controls, but need to build the name on the fly in VBA, such as DesiredTooth = “Tooth_” & Toothname where DesiredTooth is a string variable.
There are actually about 150 controls and I will need to check them all, so brute force is not a solution.
What is the syntax to read the desired tooth value?
me!DesiredTooth.value does not work – should I use a control data type? I couldn’t figure out the syntax for that either.
Any ideas?
Thanks!
Larry