Re: Assigning more than one tag to tag property
- From: HeislerKurt@xxxxxxxxx
- Date: Thu, 05 Jul 2007 17:06:16 -0700
Use the Split function to divide the tag into the individual component
elements.
Okay. Been reading up the Split function in VBA and what I found isn't
very clear to me. What I have so far gives me a "subscript out of
range error."
Below is the code in the OnCurrent event of a subform. The tag
property I'm trying to extract is the first one in the array: "**"
###
Dim ctl As Control
Dim strMyTag() As String
strMyTag = Split(Me.Tag, ";")
For Each ctl In Me
If strMyTag(0) = "**" Then
If IsNull(Me.DailyDate) Then
ctl.Enabled = False
Else
ctl.Enabled = True
End If
End If
Next
Set ctl = Nothing
###
I see that some people also define the upper and lower bounds of the
tag, as in ...
Dim intI As Integer
strMyTag = Split(Me.Tag, ";")
For intI = 0 To UBound(strMyTag)
Next intI
.... but it's not clear to me what this is supposed to do, or if it's
even relevent in my situation.
Kurt
On Jul 5, 6:56 pm, "Douglas J. Steele"
<NOSPAM_djsteele@xxxxxxxxxxxxxxxxx> wrote:
Use the Split function to divide the tag into the individual component
elements.
--
Doug Steele, Microsoft Access MVPhttp://I.Am/DougSteele
(no private e-mails, please)
<HeislerK...@xxxxxxxxx> wrote in message
news:1183667760.478968.286760@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
It it possible to assign more than one tag to a control's tag
property, so that you can assign it to multiple groups?
I tried separating tags by semicolons or commas but that seemed to
render each tag obsolete.
Kurt- Hide quoted text -
- Show quoted text -
.
- Follow-Ups:
- Re: Assigning more than one tag to tag property
- From: Douglas J. Steele
- Re: Assigning more than one tag to tag property
- References:
- Assigning more than one tag to tag property
- From: HeislerKurt
- Re: Assigning more than one tag to tag property
- From: Douglas J. Steele
- Assigning more than one tag to tag property
- Prev by Date: Re: Assigning more than one tag to tag property
- Next by Date: Re: calculate dates
- Previous by thread: Re: Assigning more than one tag to tag property
- Next by thread: Re: Assigning more than one tag to tag property
- Index(es):
Relevant Pages
|
Loading