I need to update a bunch of labels on a form...
I need to be able to take what the labels Caption is and updated that to the Tag properties.
Just a one time thing... Will never need to do it again & again. This will save me from doing it manually thru all the labels..
Below is what I am working with, and I doesn't do a thing...
Any suggestions..???
Thanks in advance..!!
jw5107
Private Sub Form_Load()
Dim frm As Form
Dim ctl As Control
Set frm = Forms!ProMap
Dim strTable As String
For Each ctl In frm.Controls
With ctl
If TypeOf ctl Is Label Then
strTable = ctl.Properties("Caption")
If strTable <> Null Then
ctl.Properties("Tag") = ctl.Properties("Caption")
End If
End If
End With
Next ctl
Set frm = Nothing
Set ctl = Nothing
End Sub
I need to be able to take what the labels Caption is and updated that to the Tag properties.
Just a one time thing... Will never need to do it again & again. This will save me from doing it manually thru all the labels..
Below is what I am working with, and I doesn't do a thing...
Any suggestions..???
Thanks in advance..!!
jw5107
Private Sub Form_Load()
Dim frm As Form
Dim ctl As Control
Set frm = Forms!ProMap
Dim strTable As String
For Each ctl In frm.Controls
With ctl
If TypeOf ctl Is Label Then
strTable = ctl.Properties("Caption")
If strTable <> Null Then
ctl.Properties("Tag") = ctl.Properties("Caption")
End If
End If
End With
Next ctl
Set frm = Nothing
Set ctl = Nothing
End Sub