Home  Fees/Services  Access 2010 Template  Access Tutorial  Access Download  Articles  Search  Contact  Privacy  Links

Report Banding Visual Basic Procedure

 

Open Email Using SendObject Access Download

Send Email Microsoft Access Tutorial Download (Advanced)

Sequential Counter in Query

Multi Select List Box Query Parameters

Row Level Data Security

Programming MS Access Security Alternative

Single User Inventory Calculations Download

How To Perform Multi-User Inventory Calculations

Make Dependent Combo Box Code MS Access Tutorial Download

Union Query Example (Simple)

Union Query (Advanced) Access Tutorial Download

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

Bar Chart / Bar Graph Download

Programming Crosstab Query Example

TransferText & OutputTo Microsoft Access Download

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

Program report banding in Visual Basic.  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.

( Note that report banding has been incorporated into Access 2007 reports as a new property in the report property sheet. )











A Blue Claw Database Design Template:

HOA Software Template
 








A Blue Claw Database Design Article:

Microsoft Access On The Internet
 



Contact Information

Copyright 2000-2013 Blue Claw Database Design, LLC