Dave
|
| Posted: 10/18/2004, 1:10 PM |
|
Sorry for such a newbie question but I can't seem to get the group header option to work on a grid. This is the code that I am trying to use in a "Before Show Row" event.
Dim DepName
If DepName = ProviderDirectory.Site_ID.value Then
ProviderDirectory.Group_Practice_Name.visible = False
Else
ProviderDirectory.Group_Practice_Name.visible = True
DepName = ProviderDirectory.Site_ID.value
End If
This seems pretty straight forward, but this is the error I receive:
Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method: 'ProviderDirectory.Group_Practice_Name'
/providers4_events.asp, line 18
I know its probably something simple; but please help.
thanks,
David
|
|
|
 |
Tuong Do
|
| Posted: 10/19/2004, 4:24 PM |
|
Hi Dave
Try This if Group_Practice_Name is a label,
Dim DepName ' This must be declared at the top of the page in order to
presserve last Site_ID
If DepName = ProviderDirectory.Site_ID.value Then
ProviderDirectory.Group_Practice_Name.visible = empty
Else
DepName = ProviderDirectory.Site_ID.value
End If
"Dave" <Dave@forum.codecharge> wrote in message
news:64174232c9a5fb@news.codecharge.com...
> Sorry for such a newbie question but I can't seem to get the group header
> option
> to work on a grid. This is the code that I am trying to use in a "Before
> Show
> Row" event.
>
> Dim DepName
> If DepName = ProviderDirectory.Site_ID.value Then
> ProviderDirectory.Group_Practice_Name.visible = False
> Else
> ProviderDirectory.Group_Practice_Name.visible = True
> DepName = ProviderDirectory.Site_ID.value
> End If
>
> This seems pretty straight forward, but this is the error I receive:
>
> Microsoft VBScript runtime error '800a01b6'
>
> Object doesn't support this property or method:
> 'ProviderDirectory.Group_Practice_Name'
>
> /providers4_events.asp, line 18
>
> I know its probably something simple; but please help.
>
> thanks,
>
> David
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
Dave
|
| Posted: 10/22/2004, 1:17 PM |
|
Thanks, Tuong Do for the suggestion, but I found it was related to the label name size. When I shorted the label name for Group_Practice_Name to GroupPractice, it worked fine. Go figuare.... Thanks anyway
|
|
|
 |
|