Using a label control as a watermark

C

Carl Rapson

I'm using Access 2002, and I have a report that has in its Page Footer
section two controls - a text box and a label. The two controls overlap, and
I want the text in the label control to be "behind" the text in the textbox.
I've tried sending the label control to the back and bringing the textbox
control to the front, but no matter what I do the text in the label control
always obscures the text in the textbox.

Basically, what I'd like is for the label control to be sort of a watermark
for the Page Footer section, always "behind" the other control. Is there any
way to do this? Can anyone think of a reason why sending the label control
"to the back" doesn't put it behind the textbox control?

Thanks,

Carl Rapson
 
M

Marshall Barton

Carl said:
I'm using Access 2002, and I have a report that has in its Page Footer
section two controls - a text box and a label. The two controls overlap, and
I want the text in the label control to be "behind" the text in the textbox.
I've tried sending the label control to the back and bringing the textbox
control to the front, but no matter what I do the text in the label control
always obscures the text in the textbox.

Basically, what I'd like is for the label control to be sort of a watermark
for the Page Footer section, always "behind" the other control. Is there any
way to do this? Can anyone think of a reason why sending the label control
"to the back" doesn't put it behind the textbox control?


If the label is attached to the text box, I get the opposite
effect where the text box is always in front of the label.
To get the label in front of the text box, I had to detach
the label.

Make sure whichever control is in front has its BackStyle
property set to Transparent.

You should probably set the ForeColor of the control in back
to a light gray or some other pale color.
 
C

Carl Rapson

Marshall Barton said:
If the label is attached to the text box, I get the opposite
effect where the text box is always in front of the label.
To get the label in front of the text box, I had to detach
the label.

Make sure whichever control is in front has its BackStyle
property set to Transparent.

You should probably set the ForeColor of the control in back
to a light gray or some other pale color.

Marsh,

The label isn't attached to the textbox, the textbox control (the one I want
in front) has its BackStyle set to Transparent, and the ForeColor of the
label control (the one I want in back) is light gray. I still can't keep the
text in the label control from obscuring the textbox control. The "empty"
part of the label control is just fine - the textbox control shows through.
It's only where the text is in the label control that it obscures.

One interesting thing is that I'm also drawing lines on the report (using
the Line method), and the lines do appear over the label control. It's only
the textbox control that can't seem to come out from behind the label.

Thanks,

Carl Rapson
 
M

Marshall Barton

Carl said:
The label isn't attached to the textbox, the textbox control (the one I want
in front) has its BackStyle set to Transparent, and the ForeColor of the
label control (the one I want in back) is light gray. I still can't keep the
text in the label control from obscuring the textbox control. The "empty"
part of the label control is just fine - the textbox control shows through.
It's only where the text is in the label control that it obscures.

One interesting thing is that I'm also drawing lines on the report (using
the Line method), and the lines do appear over the label control. It's only
the textbox control that can't seem to come out from behind the label.


I have never seen this problem using standard label and text
box controls so I am just guessing now.

Maybe this is an effect of your printer driver?? Do you see
the same effect when previewing and when printing?

What happens when you use a text box instead of a label?
(set the text box's control source to something like
="caption")
 
C

Carl Rapson

Marshall Barton said:
I have never seen this problem using standard label and text
box controls so I am just guessing now.

Maybe this is an effect of your printer driver?? Do you see
the same effect when previewing and when printing?

What happens when you use a text box instead of a label?
(set the text box's control source to something like
="caption")

Marsh,

I'll look into those areas. It may also be some kind of corruption in my db.
I'll check that too.

Thanks,

Carl Rapson
 

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