Home  Fees/Services  Access Templates  Tutorials  Access Download  Articles  Search  Contact  Privacy  Links

Microsoft Access Download
Report Alternate Line Colors in VBA Example

Report Banding Visual Basic Procedure Access Database Downloads

 Access Downloads> Report Banding Code Download

 
 

How To Open Email Using SendObject Access Example Download

Send Email Access Sample Download (Advanced)

Programming MS Access Security Alternative

Inventory Calculations Down Load ( Single User)

How To Perform Inventory Calculations (Multi-User)

Make Dependent Combo Box Code Access Database Download

Union Query Example (Simple)

Union Query (Advanced)

How To Fill Fields From Combo Box

Use Global Variables as Parameters

Download Continuous Form Dependent Combo Box

How To Program Continuous-Continuous Master/Detail Forms

Download Example for Bar Chart/ Bar Graph on Access Forms

Programming Crosstab Query Example

TransferText & OutputTo Examples

DoCmd.OpenForm & OpenArgs VBA Example

Running Sum Query Method

Choose Command Dynamic SQL Order By

Access Conditional Format

Access Report Banding

Popup Form Control Method


Report Banding

Alternating Report Line Colors in Microsoft Access

Do you remember way back when you had large reports with and green stripped fan-fold computer paper?  With today's printers you'll find it hard to get banded paper for your desktop printer - who needs it anyway when you can create the same report banding using a few lines of visual basic code within an Access database.  The banded report lines make it easier for your eyes to follow across wide detail lines.  Here's a way for you to reproduce this alternating line color effect without having to buy the old fan-fold paper and you can choose any color - pastels only please.

Generating alternating line colors in an Access report is fairly easy once you see how to do it.  After downloading the Access Report Banding Example:

Press the Open Report button below and you'll see the report in print preview mode
Note the alternating colors of the detail lines in the report (aka report banding).

Place the report in design view. Then pick 'View' menu and then 'Code' . You'll see the visual basic code used the create the banding.

Note the iline variable at the top of the code - this is a global variable (global to the report only). Iline is a boolean variable and therefore has two values - either true or false.

Note the event procedure On format for the Detail section of the report.

If the iline variable is true then the detail section back color is set to light blue. If the iline variable is false then the detail back color is set to white.

Note that the detail on format event procedure causes the iline variable to toggle back and forth from true to false - thereby alternating the line colors.

Access Report Banding

Use this link to download the Access Database Report Banding example.



If you have arrived at this Microsoft Access download page directly then don't miss our Access Database Tutorial

 

Microsoft Access support



Contact Information 

Access Database Downloads
MS Access 2003 Download Access 2000 Downloads 2002

Access Database Examples • Microsoft Access Templates • MS Access Tutorials