I have a form that if the user presses a button, 18 fields should enable. Then after they perform a function, I want to lock those same 18 fields.
I thought this would have worked for the enable:
For Z = 1 To 6
strField = "GainAmp+" & Trim(Str(Z))
Me![strField].Enabled = True
Next Z
Can I refer to a field via a string name?
I thought this would have worked for the enable:
For Z = 1 To 6
strField = "GainAmp+" & Trim(Str(Z))
Me![strField].Enabled = True
Next Z
Can I refer to a field via a string name?