Manufacturing Information Solutions Forum Index Manufacturing Information Solutions
Your Place for Support and Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to make your report a "greenbar" report

 
Post new topic   Reply to topic    Manufacturing Information Solutions Forum Index -> Microsoft Access
View previous topic :: View next topic  
Author Message
franke
Master Poster


Joined: 26 Jun 2004
Posts: 161
Location: Indiana, USA

PostPosted: Fri Dec 28, 2007 1:13 pm    Post subject: How to make your report a "greenbar" report Reply with quote

Put the following code on the On Format event of the Detail section of your report.

I will create alternating lines or bars of a different color, in this case green for that greenbar look (you could also make it gray for a graybar effect on a black and whit printer).

Code:
Option Compare Database
Dim greenbar As Boolean

Code:

Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)

If greenbar Then
   Detail.BackColor = 12181965
Else
    Detail.BackColor = vbWhite
End If

greenbar = Not (greenbar)

End Sub
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Manufacturing Information Solutions Forum Index -> Microsoft Access All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group