Stemdriller
Registered User.
- Local time
- Today, 21:55
- Joined
- May 29, 2008
- Messages
- 187
Hi
I've just been introduced to the wonderful world of 'Tags'
Using the following code on the 'On current' of the form, trying to get the code to check the textboxes, in the form that have the Tag name dAble
I the textbox has a value then disable it, else leave it blank.
But I think i am missing something.
Dim ctl As Control
If Value <> "" Then
For Each ctl In Me.Controls
If ctl.Tag = "dAble" Then
ctl.Enabled = False
End If
Next
End If
End Sub
Any help would be most appreciated.
Thanks
Gareth
I've just been introduced to the wonderful world of 'Tags'
Using the following code on the 'On current' of the form, trying to get the code to check the textboxes, in the form that have the Tag name dAble
I the textbox has a value then disable it, else leave it blank.
But I think i am missing something.
Dim ctl As Control
If Value <> "" Then
For Each ctl In Me.Controls
If ctl.Tag = "dAble" Then
ctl.Enabled = False
End If
Next
End If
End Sub
Any help would be most appreciated.
Thanks
Gareth