PC Review


Reply
Thread Tools Rate Thread

Alternating detail colours in a report?

 
 
kdaniel7979
Guest
Posts: n/a
 
      2nd Mar 2006
Is it possible to design a report that alternates the colour in the
detail record?

 
Reply With Quote
 
 
 
 
=?Utf-8?B?VG9tIFdpY2tlcmF0aA==?=
Guest
Posts: n/a
 
      2nd Mar 2006
Yes. See the following KB article:

How to shade every other detail line on a report
http://support.microsoft.com/?id=288154

This article uses white and yellow, but you are free to pick from a long
list of colors.


Tom

http://www.access.qbuilt.com/html/ex...tributors.html
http://www.access.qbuilt.com/html/search.html
__________________________________________


"kdaniel7979" wrote:

> Is it possible to design a report that alternates the colour in the
> detail record?
>
>

 
Reply With Quote
 
fredg
Guest
Posts: n/a
 
      2nd Mar 2006
On 1 Mar 2006 22:46:50 -0800, kdaniel7979 wrote:

> Is it possible to design a report that alternates the colour in the
> detail record?


Make sure the BackStyle of each control is Transparent.

Code the Detail Format event:

If Me.Section(0).BackColor = vbWhite Then
Me.Section(0).BackColor = 12632256 ' gray
Else
Me.Section(0).BackColor = vbWhite
End If

====
If you wish each page to start with a white row, code the Page Header
Format event:

Me.Detail.BackColor = 12632256 'Reset color to Grey so that the
first detail line will become white

Change the colors as needed.
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
 
Reply With Quote
 
kdaniel7979
Guest
Posts: n/a
 
      3rd Mar 2006
Nice and clean solution.

Thx

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Alternating colours in Access 2007 report John Microsoft Access VBA Modules 3 15th Jul 2009 08:06 PM
Format Records alternating colours. witharebelyell@hotmail.com Microsoft Excel Discussion 3 31st Aug 2007 07:27 AM
Alternating Colours in the forms details Dave Microsoft Access Forms 1 25th Feb 2005 05:41 AM
alternating colours on a continous form =?Utf-8?B?S2lyayBHb3JtYW4=?= Microsoft Access Forms 2 11th Feb 2005 12:23 PM
alternating rows colours braziliandp Microsoft Excel Discussion 4 13th Aug 2004 04:04 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:09 AM.