Re: Add ONE variable word to report header
- From: Marshall Barton <marshbarton@xxxxxxxxxx>
- Date: Fri, 10 Mar 2006 17:39:36 -0600
Comments inline below.
--
Marsh
MVP [MS Access]
Ann Scharpf via AccessMonster.com wrote:
Actually, I didn't go back into my database but cut & pasted those lines out
of Klatuu's earlier post. The lines that ARE in my open event are:
Private Sub Report_Open(Cancel As Integer)
If MgbBox("Is This A Revision", vbQuestion + vbYesNo) = vbYes Then
Me.Label4.Caption = Me.Label4.Caption & " Revision"
End If
End Sub
This is the ONLY change that I have made to my report, so if I remove them, I
am just back to the original version which, as I said, did open just fine.
The reason I want you to actually remove that code is to
double check that something else isn't getting in the way of
chasing down this problem. Logic may say it can't happen,
but I really want to make sure that the above perfectly
sensible code is somehow blowing up the whole report.
I did use your "quick and dirty" method of adding a text box with a control
source to prompt the user to add the word REVISION. This worked on three of
my four reports. The last report is significantly more complicated than the
others. (It's a composite of four unbound reports.) When I try to add the
field with control source to this report, Access doesn't print the word
REVISION in the header but the word ?NAME.
If you got that to work anywhere, you must have fixed my
missing quote mistake. I don't see any reason for it to
work one place and not work in another. The only way I can
think of getting ?Name is if the quotes were wrong, so maybe
you didn't fix my mistake in the one that doesn't work.
So, I am trying to find a way to make this last report print the word
REVISION at the top of the first page.
Another difference between the reports is that the three that work have a
report header and the one that doesn't is lacking the report header. So I
made a copy of the report and switched the page header info to the report
header. Didn't have any effect.
I don't think that makes a difference, but if it did, you
would need to use Klatuu's idea, which, except for your lack
of VBA skills, is better all the way around.
.
- Follow-Ups:
- Re: Add ONE variable word to report header
- From: Ann Scharpf via AccessMonster.com
- Re: Add ONE variable word to report header
- References:
- Add ONE variable word to report header
- From: Ann Scharpf via AccessMonster.com
- RE: Add ONE variable word to report header
- From: Ann Scharpf via AccessMonster.com
- RE: Add ONE variable word to report header
- From: Ann Scharpf via AccessMonster.com
- Re: Add ONE variable word to report header
- From: Marshall Barton
- Re: Add ONE variable word to report header
- From: Ann Scharpf via AccessMonster.com
- Re: Add ONE variable word to report header
- From: Marshall Barton
- Re: Add ONE variable word to report header
- From: Ann Scharpf via AccessMonster.com
- Add ONE variable word to report header
- Prev by Date: Re: Duane Hookom's - Outlook Styled Report Demo
- Next by Date: Re: Syntax error for filter between dates
- Previous by thread: Re: Add ONE variable word to report header
- Next by thread: Re: Add ONE variable word to report header
- Index(es):
Relevant Pages
|