Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing a form.

Status
Not open for further replies.

Eightball3

Programmer
Nov 23, 2002
138
US
I have a form with a gray background and black text. When I print the form the page comes out shaded as well, of course. I would like to have the form background color white on a print preview or print without making my form's background color white. Is it possible to change the form's background color back and forth, white when previewing and printing and gray when in form view? Thanks.
 
Hi 8ball,

try putting the following code in before the line that opens your report:

Me.Detail.BackColor = 16777215

This will change the form background color to white

then for the onclose of the report change the backcolor back to grey, the number is 12632256

D
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top