|
-
Aug 14th, 2000, 03:46 AM
#1
Thread Starter
Hyperactive Member
Hi
I am trying to clear all the label captions from a form at the same time, I have tried to use this bit of code to clear all textboxes and adapted it to labels but it won't work. How do I do it ?
Private Sub Command2_Click()
Dim indx As Integer
With Me.Controls
MsgBox .Count
For indx = 0 To .Count - 1
If Me.Controls(indx).Tag = "1" Then
If (TypeOf Me.Controls(indx) Is Label) Then
Me.Controls(indx).Caption = " "
End If
End If
Next
End With
DoEvents
End Sub
Thanx
Locutus
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|