473,403 Members | 2,323 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Report Issues

My dilemma is this:
I have to run an access report that makes certain customer records
easily viewable in a daily report that is to be run. Is it possible to
conditionally shade just the background for certain individual
customers (lets say possibly a dozen different customers which may vary
daily), leaving the remaining report unshaded? The only shading info I
can find is the "every other line" shading which won't help me. I was
trying to look into conditional formatting, but so far have been
unsuccessful.

Any help would be so appreciated.

Thanks

Alex

Jul 10 '06 #1
3 1693
On 9 Jul 2006 19:17:45 -0700, bi*****@gmail.com wrote:
My dilemma is this:
I have to run an access report that makes certain customer records
easily viewable in a daily report that is to be run. Is it possible to
conditionally shade just the background for certain individual
customers (lets say possibly a dozen different customers which may vary
daily), leaving the remaining report unshaded? The only shading info I
can find is the "every other line" shading which won't help me. I was
trying to look into conditional formatting, but so far have been
unsuccessful.

Any help would be so appreciated.

Thanks

Alex
Not really enough information here.
How do we know which customers you wish to change the color for?
By Name? By some other condition? Do you wish to change just the one
control color, i.e. the CustomerName? Or the color of the entire
detail section for that customer?

For instance, if you wish to change the entire backcolor of the detail
section, you can code the Detail Format event:
If [CustomerName] = "Smith" Or [CustomerName] = "Jones" Then
Me.Section(0).BackColor = vbYellow
Else
Me.Section(0).BackColor = vbWhite
End If

You'll probably want to have the BackStyle of each control in the
section is set to Transparent.

Conditional Formatting will work quite well to change the forecolor of
the controls.
Set the Condition1 to
Expression Is
Write
[CustomerName] = "Jones" Or [CustomerName] = "Smith"
as the condition.

--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
Jul 10 '06 #2
On 9 Jul 2006 19:17:45 -0700, bi*****@gmail.com wrote:

The "alternate line shading" code can be adjusted to your needs. It
probably currently tries to figure out if you're on a odd or even row,
and set the background color accordingly.
In PseudoCode:
if RowCount Mod 2 = 0 then
'Even
SetBackgroundColor vbGreen
else
'Odd
SetBackgroundColor vbWhite
end if

Just replace the "RowCount Mod 2 = 0" expression with your
IsCertainCustomer() function or expression.

-Tom.
>My dilemma is this:
I have to run an access report that makes certain customer records
easily viewable in a daily report that is to be run. Is it possible to
conditionally shade just the background for certain individual
customers (lets say possibly a dozen different customers which may vary
daily), leaving the remaining report unshaded? The only shading info I
can find is the "every other line" shading which won't help me. I was
trying to look into conditional formatting, but so far have been
unsuccessful.

Any help would be so appreciated.

Thanks

Alex
Jul 10 '06 #3

bi*****@gmail.com wrote:
My dilemma is this:
I have to run an access report that makes certain customer records
easily viewable in a daily report that is to be run. Is it possible to
conditionally shade just the background for certain individual
customers (lets say possibly a dozen different customers which may vary
daily), leaving the remaining report unshaded? The only shading info I
can find is the "every other line" shading which won't help me. I was
trying to look into conditional formatting, but so far have been
unsuccessful.

Any help would be so appreciated.

Thanks

Alex
I am new to this group and relatively new to Access programming, but
maybe I can help a little bit here. Fred's reply sounds like what you
are looking for as far as formatting goes, but typing in each
individual's name in the code seems a bit tedious. If I understand
your situation correctly I would take Fred's suggestion one step
further and create a small form or pop-up box that would include a list
of all customers who you could possibly want shaded on the report. Add
a field that is called "Shade" or something to that effect and make it
a yes/no field. You can then run the macro with a conditional
statement where you can apply the back/fore color if the Shade field =
Yes. You can even take that a step further and run an append query
when you are finished with the daily report to clear all "Yes" records
in the "Shade" field.

Again, I am new to this group so hello to everyone. I don't know if my
two cents help here. If there is a better way of going about selecting
customers for this conditional formatting I am all ears as well as I am
sure Alex is.

---Tim Dunne

Jul 10 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Lynn N. | last post by:
I have a report showing Rate, Hours and Total Pay (which is Rate*Hours) for several workers. I want to sum the Total Pay and get a CORRECT figure. This seems like it should be such a simple task....
1
by: Megan | last post by:
quick summary: i'm having problems trying to group fields in a report in order to calculate percentages. to calculate percentages, i'm comparing the results from my grouped fields to the totals....
1
by: Andy_Khosravi | last post by:
I'm having trouble building a query to gather the information I need from a table. I need to be able to assemble an inventory report that displays receipts, output, and running inventory from a...
3
by: lodatokab | last post by:
I'm have problem to run crystal report (VS 2005) on my computer with Windows 2000 Server. I run the solution in my dev envroiment (Windows XP) and no problems. When I try to run in on IIS 5.0 on...
1
by: steve | last post by:
Hi All Can anybody point me to some info on creating a graph in VB.net 2005 report viewer I can't seem to find any on the web I want to show sales totals by week in a vertical bar graph ...
3
by: steve | last post by:
Hi All I have a VB.net 2005 app which uses MS Report Viewer to create reports Occassionally I get the following error when changing to a different report User code running on thread 196 has...
8
by: Ryan | last post by:
I have a SQL view that shows data by Category and Year - so the data may look something like this. Category - Year - Amount Fruit - 2006 - $12,000 Fruit - 2007 - $16,000 Vegetables - 2006 -...
6
by: Simone | last post by:
Hello Here is my issue, I created a crystal report using a data set from my xsd. Then I created a page with the crystal report viewer control and bound the report to it. When I try to view...
2
by: J.Marsch | last post by:
All: I am having a problem with Microsoft Reporting Services. I am running a local report (RDLC) on ASP.Net. Running the report obviously can use a lot of memory because it must consume...
1
by: Cara Murphy | last post by:
Hi There! Hoping you are able to help me with a filtering scenario: I have created a pop up form (Filter) to filter a report (Open Issues), which currently has a number of combo boxes which...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.