AlanJordan
Programmer
As I increase the number of text boxes that I have on a form, it becomes obvious to me that code like this for each text box is inefficient.
Can anyone suggest the best way to make this more generic, passing a control.
Code:
With Me("txtNonSchHours" & i)
.Value = ""
.Format = "Fixed"
.DecimalPlaces = 2
End With
With Me("txtCode" & i)
.Value = ""
.Format = "Fixed"
.DecimalPlaces = 2
End With
. . . etc.