"Continued next page" using Hascontinued

G

Guest

In my report, using the following code works to a certain extent

If GroupHeader0.HasContinued = True Then Me.Label76.Visible = True

Unfortunately, Label76 is visible on every page after it's first appearance,
even if GroupHeader0 does not continue.

I have tried to finish with "Else Me.Label76,Visible = False", but I keep
getting the "Else without If" error. Please help.

Please do not reply with counters; they are way over my head.
 
M

Marshall Barton

Odniel said:
In my report, using the following code works to a certain extent

If GroupHeader0.HasContinued = True Then Me.Label76.Visible = True

Unfortunately, Label76 is visible on every page after it's first appearance,
even if GroupHeader0 does not continue.

I have tried to finish with "Else Me.Label76,Visible = False", but I keep
getting the "Else without If" error. Please help.


Since you never said what effect you were trying to achieve,
I can't say if HasContinued is going to meets your needs.
But if you want to try it, here's the long way to do it:

If Me.GroupHeader0.HasContinued = True Then
Me.Label76.Visible = True
Else
Me.Label76.Visible = False
End If

and this is the short way:

Me.Label76.Visible = Me.GroupHeader0.HasContinued
 
J

John Spencer

If GroupHeader0.HasContinued = True Then
Me.Label76.Visible = True
Else
Me.Label76.Visible = False
End if

Or in a more esoteric bit of code

Me.Label76.Visible = GroupHeader0.HasContinued
 
G

Guest

Both solutions took me half way. Half way is better than no way at all. I was
trying to place a "Continued" message every time the data on the subreport
flows into another page. Now I have "Continued" sometimes, but not others.
Still, it's better than the way I had it, so thanks.

Any further assistance is appreciated; in the meantime, I'll keep at it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top