M
Merlin
Hi,
My code below doesn't work does anyone have any pointers? All my controls
are programically added.
Dim i As Int16
For i = 0 To Me.Controls.Count - 1
If Me.Controls(i).Name <> "TheOneIWantToKeep" Then
Me.Controls.RemoveAt(i)
End If
Next
As the loop moves through the index I get an Index Is Out Of Range Error mid
way through.
Many thanks
My code below doesn't work does anyone have any pointers? All my controls
are programically added.
Dim i As Int16
For i = 0 To Me.Controls.Count - 1
If Me.Controls(i).Name <> "TheOneIWantToKeep" Then
Me.Controls.RemoveAt(i)
End If
Next
As the loop moves through the index I get an Index Is Out Of Range Error mid
way through.
Many thanks