Can some one help please?

  • Thread starter Thread starter Al
  • Start date Start date
A

Al

I have an unbound txt box called "Dtxt". I wanted this
text box to show on the first page only if the report will
have more than one page. In that case the [Dtxt] will
equal the value of [ProgressNotesDate] which is a date
field. The problem is: this works in the preview only i.e.
(on the screen) but when I print the [Dtxt] does not show
on the hard copy. I do not know why? since this was
working for some time.

The following code is in PageHeader_Print event:
If Me.Main.WillContinue = True Then
Me![Dtxt] = Me![ProgressNotesDate]
Me![Dtxt].Visible = True
Me![ProgressNotesDate].Visible = False
End If

Thanks
Al
 
Well you said the text box is unbound so you probably don't
need to be using Me![Dtxt]. Try just using Me.Dtxt. Also,
you can put text box in the report header which will only
be displayed on the first page if you like. To view the
report header go under the "View" menu and choose "Report
Header/Footer". Hope this helps.

Kevin
 
My Problem is not just showing it on the first page or
not. My problem is that in the preview it is doing what it
is suppose to do but not on the print out. The reason why
I have it this way, that there are situations where I need
to show it on the first and the second page. However, the
problem is that I am getting on the preview the right
thing but not on the print out. do you know why a
situation like this may occure?
thanks
Al
-----Original Message-----
Well you said the text box is unbound so you probably don't
need to be using Me![Dtxt]. Try just using Me.Dtxt. Also,
you can put text box in the report header which will only
be displayed on the first page if you like. To view the
report header go under the "View" menu and choose "Report
Header/Footer". Hope this helps.

Kevin

-----Original Message-----
I have an unbound txt box called "Dtxt". I wanted this
text box to show on the first page only if the report will
have more than one page. In that case the [Dtxt] will
equal the value of [ProgressNotesDate] which is a date
field. The problem is: this works in the preview only i.e.
(on the screen) but when I print the [Dtxt] does not show
on the hard copy. I do not know why? since this was
working for some time.

The following code is in PageHeader_Print event:
If Me.Main.WillContinue = True Then
Me![Dtxt] = Me![ProgressNotesDate]
Me![Dtxt].Visible = True
Me![ProgressNotesDate].Visible = False
End If

Thanks
Al

.
.
 
Al said:
I have an unbound txt box called "Dtxt". I wanted this
text box to show on the first page only if the report will
have more than one page. In that case the [Dtxt] will
equal the value of [ProgressNotesDate] which is a date
field. The problem is: this works in the preview only i.e.
(on the screen) but when I print the [Dtxt] does not show
on the hard copy. I do not know why? since this was
working for some time.

The following code is in PageHeader_Print event:
If Me.Main.WillContinue = True Then
Me![Dtxt] = Me![ProgressNotesDate]
Me![Dtxt].Visible = True
Me![ProgressNotesDate].Visible = False
End If


I can't explain how that works in any view. What does
WillContinue have to do with this??

I think you can get what you want by using:

Me![Dtxt].Visible = (Me.Page = 1)
Me![ProgressNotesDate].Visible = Not (Me.Page = 1)
 
It does not! let me rephrase the problem. I have a Text
Box Called [Dtxt] which is filled in, programatically,
with a date value. The Value shows in the preview on the
screen but not in the print out. Does this have to do with
the printer settings? did anyone had a situation before
where a value shows in the preview but not in the printed
hard copy?
thanks
Al
-----Original Message-----
Al said:
I have an unbound txt box called "Dtxt". I wanted this
text box to show on the first page only if the report will
have more than one page. In that case the [Dtxt] will
equal the value of [ProgressNotesDate] which is a date
field. The problem is: this works in the preview only i.e.
(on the screen) but when I print the [Dtxt] does not show
on the hard copy. I do not know why? since this was
working for some time.

The following code is in PageHeader_Print event:
If Me.Main.WillContinue = True Then
Me![Dtxt] = Me![ProgressNotesDate]
Me![Dtxt].Visible = True
Me![ProgressNotesDate].Visible = False
End If


I can't explain how that works in any view. What does
WillContinue have to do with this??

I think you can get what you want by using:

Me![Dtxt].Visible = (Me.Page = 1)
Me![ProgressNotesDate].Visible = Not (Me.Page = 1)
 
Al said:
It does not! let me rephrase the problem. I have a Text
Box Called [Dtxt] which is filled in, programatically,
with a date value. The Value shows in the preview on the
screen but not in the print out. Does this have to do with
the printer settings? did anyone had a situation before
where a value shows in the preview but not in the printed
hard copy?

Boy, did I misunderstsand your question! Sorry about that.

And No, I have never seen that problem, but I would suspect
something funny in either your printer driver or the way
Windows was configured.
 
Make sure Dtxt does not overlap any other controls.
Some printer drivers only print the top field in this case, even if
the overlap appears minor to you (e.g. Just a corner)

HTH
Regards Greg Kraushaar
Wentworth Falls Australia
(Do not email - the reply address is a Spam spoofer)
(If you really must, remove all UCase and numbers)

Al said:
It does not! let me rephrase the problem. I have a Text
Box Called [Dtxt] which is filled in, programatically,
with a date value. The Value shows in the preview on the
screen but not in the print out. Does this have to do with
the printer settings? did anyone had a situation before
where a value shows in the preview but not in the printed
hard copy?

Boy, did I misunderstsand your question! Sorry about that.

And No, I have never seen that problem, but I would suspect
something funny in either your printer driver or the way
Windows was configured.
 
You are right on the money my friend! this was the problem
coupled with may be a change on the network printing
spooling. It is working now after I made sure that the
Dtxt box was not overlapped by other controls. I hope that
this may help someone that may have a similar problem.
thank you and thanks to Marsh who also tried to help
Al
-----Original Message-----
Make sure Dtxt does not overlap any other controls.
Some printer drivers only print the top field in this case, even if
the overlap appears minor to you (e.g. Just a corner)

HTH
Regards Greg Kraushaar
Wentworth Falls Australia
(Do not email - the reply address is a Spam spoofer)
(If you really must, remove all UCase and numbers)

Al said:
It does not! let me rephrase the problem. I have a Text
Box Called [Dtxt] which is filled in, programatically,
with a date value. The Value shows in the preview on the
screen but not in the print out. Does this have to do with
the printer settings? did anyone had a situation before
where a value shows in the preview but not in the printed
hard copy?

Boy, did I misunderstsand your question! Sorry about that.

And No, I have never seen that problem, but I would suspect
something funny in either your printer driver or the way
Windows was configured.

.
 
Back
Top