G
Guest
Hello,
I'm looking for some help with a sub-report problem in Access97. Here are
the basic things that may be relevant...
The sub-report has labels for it's columns in a group header (because report
headers won't print in sub-reports).
The sub-report is often large enough to force a new page on the main report.
The sub-report group header prints fine on the top of the new page because
the RepeatSection property of the group header is set to Yes.
The user would like to have an additional ID field printed in the group
header if it occurs on a new page, but not printed if there isn't a page
overflow.
I added the new field (named "HeaderName") to the group header section.
I was hoping to then set the Visible property for this field according to
the value of the HasContinued property for the group header section with the
following code (attached to the Format event of the group header section):
If
Reports!CandidateBioProfileSubInternational!Section(GroupHeader).HasContinued
= True Then
HeaderName.Visible = True
Else
HeaderName.Visible = False
End If
However, this code gives me an Access Run-Time error 2465. The message says:
"...can't find the field 'Section' referred to in your expression.".
I have not used the HasContinued property before. I ran across it in the
"Help" text, but there wasn't a lot of information. It sounded like it could
be used to do what I want, but I'm not sure. I don't know if I am trying to
use it incorrectly, or have the syntax messed up, or what...
Any suggestions would be greatly appreciated!! Either on how to correct the
above, or other ways to accomplish to same thing.
Thanks for your help.
I'm looking for some help with a sub-report problem in Access97. Here are
the basic things that may be relevant...
The sub-report has labels for it's columns in a group header (because report
headers won't print in sub-reports).
The sub-report is often large enough to force a new page on the main report.
The sub-report group header prints fine on the top of the new page because
the RepeatSection property of the group header is set to Yes.
The user would like to have an additional ID field printed in the group
header if it occurs on a new page, but not printed if there isn't a page
overflow.
I added the new field (named "HeaderName") to the group header section.
I was hoping to then set the Visible property for this field according to
the value of the HasContinued property for the group header section with the
following code (attached to the Format event of the group header section):
If
Reports!CandidateBioProfileSubInternational!Section(GroupHeader).HasContinued
= True Then
HeaderName.Visible = True
Else
HeaderName.Visible = False
End If
However, this code gives me an Access Run-Time error 2465. The message says:
"...can't find the field 'Section' referred to in your expression.".
I have not used the HasContinued property before. I ran across it in the
"Help" text, but there wasn't a lot of information. It sounded like it could
be used to do what I want, but I'm not sure. I don't know if I am trying to
use it incorrectly, or have the syntax messed up, or what...
Any suggestions would be greatly appreciated!! Either on how to correct the
above, or other ways to accomplish to same thing.
Thanks for your help.