A
ALESSANDRO Baraldi
Hi.
I have a function that cicle all Controls on a Form and Formatt
the colors and effect on TextBox.
My problem born when on my Form i have SubForm/s
I think to build this function as a recursive one, but i
have some problem don't work....!
Function FormatControl(frm as Object)
dim ctr as control
With frm
for each ctr in .Controls
If Ctr.ControlType = acTextBox Then
'.....format
ElseIf Ctr.ControlType = acSubform Then
FormatControl(.Controls(ctr.Name))
End if
Next
End with
End Function
Is possible to to it like i think to have a better flexible function...?
Thanks in advace and good week end.
@Alex (Alessandro Baraldi)
I have a function that cicle all Controls on a Form and Formatt
the colors and effect on TextBox.
My problem born when on my Form i have SubForm/s
I think to build this function as a recursive one, but i
have some problem don't work....!
Function FormatControl(frm as Object)
dim ctr as control
With frm
for each ctr in .Controls
If Ctr.ControlType = acTextBox Then
'.....format
ElseIf Ctr.ControlType = acSubform Then
FormatControl(.Controls(ctr.Name))
End if
Next
End with
End Function
Is possible to to it like i think to have a better flexible function...?
Thanks in advace and good week end.
@Alex (Alessandro Baraldi)