Solved

column colors in access 2010 report

Posted on 2013-01-31
6
738 Views
Last Modified: 2013-03-04
I need to alternate the back color of the columns in my access report.  4 columns - every other column is "some color".  I know you can do that for rows, but I can't find anything about doing it for columns.  Is that possible?
0
Comment
Question by:ATXTHA
6 Comments
 
LVL 84
ID: 38841783
There is no builtin "alternate column backcolor", but you could just set the BackColor of your report columns as desired.

So for the first 4, you'd just have a transparent backcolor, then for the next 4 you'd set the backcolor, and so on.

Unless I'm missing something ...
0
 
LVL 29

Expert Comment

by:IrogSinta
ID: 38841796
If your column fields don't fill up the detail section (height-wise), you can add a colored box behind alternate columns. Just make the height of the box the same as the detail height and set the backcolor property of each box.
0
 

Author Comment

by:ATXTHA
ID: 38841827
What I forgot to mention is the columns I'm talking about come from page layout and not from having 4 text boxes in my detail.
0
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 
LVL 84
ID: 38841902
What do you mean by "page layout"?
0
 
LVL 29

Expert Comment

by:IrogSinta
ID: 38841999
I don't believe you could do that using the column layout.  A way you could do this though is to create a subreport and add a subreport control into your report multiple times (each with a different Master/Child link).  You could then add code in your OnFormat event to change the backcolor of alternate subreports.
0
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 500 total points
ID: 38857403
ATXTHA,

As you can see, there is no simple way to do what you are asking.

To be fair, I have never seen a request like this.
Can you explain the need for this...?

With rows, it is needed to line up all the fields for a single record.
Because the columns are vertical, there is little need to alternate the colors.

Also note that report a report "Field" can span multiple report sections, so you would need to sync this "Coloring" for all report sections...

Finally note that "records" (rows) are generated one at a time (On Detail Format)
The columns are hardcoded graphical elements that can even overlap.

So perhaps you could post an actual graphic of your report and show the "*exact, graphical* result you are seeking.

JeffCoachman
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question