K
kw_uh97
Hello Everyone
I can't seem to get this code to work and I am wondering why? I am trying to
set the textbox values to all uppercase letters. Please expain. ?:-(
Dim ctl As Control
For Each ctl In Me.Controls
If ctl.ControlType = acLabel Then
ctl.Caption = Replace(ctl.Caption, "_", " ")
ctl.Caption = UCase(ctl.Caption)
ctl.FontSize = 10
ctl.FontItalic = False
End If
Next ctl
For Each ctl In Me.Controls
If ctl.ControlType = acTextBox Then
ctl.Value = UCase(ctl.Value)
End If
Next ctl
Thanks In Advance
I can't seem to get this code to work and I am wondering why? I am trying to
set the textbox values to all uppercase letters. Please expain. ?:-(
Dim ctl As Control
For Each ctl In Me.Controls
If ctl.ControlType = acLabel Then
ctl.Caption = Replace(ctl.Caption, "_", " ")
ctl.Caption = UCase(ctl.Caption)
ctl.FontSize = 10
ctl.FontItalic = False
End If
Next ctl
For Each ctl In Me.Controls
If ctl.ControlType = acTextBox Then
ctl.Value = UCase(ctl.Value)
End If
Next ctl
Thanks In Advance