Hello,
I need to disable certain contols on a form. I am looking for a cleaner way to do it than I am. I do not want to disable all controls. Below is what I have now. What I'm wondering is if there is some way maybe to assign each of the controls to an array, and then loop through the array? Any help is appreciated.
I need to disable certain contols on a form. I am looking for a cleaner way to do it than I am. I do not want to disable all controls. Below is what I have now. What I'm wondering is if there is some way maybe to assign each of the controls to an array, and then loop through the array? Any help is appreciated.
Code:
With Me
With .txtTrustAcctNumber
.Enabled = True
.Locked = False
.BackStyle = 1
End With
With .cboTrustDatabaseID
.Enabled = True
.Locked = False
.BackStyle = 1
End With
With .txtControlID
.Enabled = True
.Locked = False
.BackStyle = 1
End With
With .txtTrustAcctName
.Enabled = True
.Locked = False
.BackStyle = 1
End With
End With