<%dim crumb crumb="Report Banding Code Download" Crumb2="Report Banding Visual Basic Procedure" crumb1="Report Row Banding in VBA Example" %> Report Banding / Banding Report Line Colors
Home  Fees/Services  Access 2010 Template  Access Tutorial  Access Download  Articles  Search  Contact  Privacy  Links

<%if len(crumb2)>2 then response.write crumb2 else response.write ">

Open Email Using SendObject Access Download

User Inactivity Logout VBA Code

Disable Shift Key Demo

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

Union Query Example (Simple)

Union Query (Advanced) Access Tutorial

How To Fill Fields From Combo Box

Use Global Variables as Parameters

Continuous Form Dependent Combo Box

How To Program Continuous-Continuous Master/Detail Forms

Access Bar Chart / Bar Graph

Programming Crosstab Query Example

TransferText & OutputTo Microsoft Access

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

<% gnum="1186246568" %>

Report Banding

Report Line Banding 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 changing line colors without having to buy the old fan-fold paper and you can choose any color - pastels only please.

Generating detail report line banding 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 color banding of the detail lines in the report.

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 changing 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. )

Microsoft Office:
MS Access 2003
Access 2007
Access 2010
Access 2013
Access 2016
<% dim rnum Randomize rnum = Int(Rnd * 10) + 1 response.write " Updated On " & now-rnum %>

Contact Information

<% Response.write "Copyright 2000-" & year(now) & " Blue Claw Database Design" %>

MS Access 2013, Access 2010 & Microsoft Office 2007