Solved

column colors in access 2010 report

Posted on 2013-01-31
6
681 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 84
Comment Utility
What do you mean by "page layout"?
0
 
LVL 29

Expert Comment

by:IrogSinta
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
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…

772 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now