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

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


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.



Our programming team has 15 members containing a wide variety of technical database knowledge and programming experience. Experts in small business management and scientific database programming.

Did you know you don't need to move to SQL/Server to run and manage your Access database on the net. There are many alternative solutions. Among them are Amazon's AWS cloud services and various hosting services in nearly every state.


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











A Blue Claw Software Design Template:

Document Revision Control Application
 










A Blue Claw Database Design Article:

How To Create Faster Access Databases
 









Blue Claw Database Design Downloadable Tutorial:
Make Dependent Combo Box Code MS Access  Tutorial Download  









Here is a randomly selected programming tutorial:

Parameter Query
 


Microsoft Office:
MS Access 2003
Access 2007
Access 2010
Access 2013
Access 2016
Updated On 3/17/2017 9:05:46 AM

Contact Information

Copyright 2000-2017 Blue Claw Database Design

MS Access 2013, Access 2010 & Microsoft Office 2007