CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Group Headers

Print topic Send  topic

Author Message
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

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.