A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Changing Colors



 
 
Thread Tools Display Modes
  #1  
Old November 24th, 2004, 11:18 PM
Steve
external usenet poster
 
Posts: n/a
Default Changing Colors

Good Day.

Anyone have a quick trick to change the backColor of a
text field for every other line in a report.

I want one line to be white, the next line of the report
to be grey.

Thanks,

  #2  
Old November 25th, 2004, 01:19 AM
Marshall Barton
external usenet poster
 
Posts: n/a
Default

Steve wrote:
Anyone have a quick trick to change the backColor of a
text field for every other line in a report.

I want one line to be white, the next line of the report
to be grey.



Add code like this to the text box section's Format event
procedure

If Me.textbox.BackColor vbWhite Then
Me.textbox.BackColor = vbWhite
Else
Me.textbox.BackColor RGB(192,192,192)
End If

--
Marsh
MVP [MS Access]
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing Button Colors, Hiding Title Bar, and Menu Bar DS Using Forms 5 September 28th, 2004 11:14 PM
Changing colors? R. Corrigan Powerpoint 6 August 3rd, 2004 05:37 PM
Changing colors in ppt-charts Gaby Powerpoint 2 July 20th, 2004 02:46 PM
changing colors per event MikeInKC Calendar 5 July 17th, 2004 07:45 PM
Changing Colors of Bar Graphs Lynn Bartling Charts and Charting 5 February 2nd, 2004 03:16 PM


All times are GMT +1. The time now is 09:33 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.