473,779 Members | 2,063 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1706
On 9 Jul 2006 19:17:45 -0700, bi*****@gmail.c om 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).B ackColor = vbYellow
Else
Me.Section(0).B ackColor = 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.c om 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
SetBackgroundCo lor vbGreen
else
'Odd
SetBackgroundCo lor vbWhite
end if

Just replace the "RowCount Mod 2 = 0" expression with your
IsCertainCustom er() 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
conditionall y 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.c om 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
5118
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. But there seems to be rounding issues in Access 2000 that I can't figure out. It seems that, even though the report is displaying Total Pay as currency rounded off to two decimal places, the report is actually using more than two decimal places...
1
2510
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. first, let me say that this is a really long post. i wasn't sure how much information/ background to provide, so i thought more was better than less. i tried to delineate certain areas so that it would be easy to peruse my posting and find...
1
1898
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 table named tblHistory. My setup: I am running A97. I have one table called tblIssues linked in a one-to-many-relationship with a table called tblHistory. The tblIssues table contains the issue header information, while the tblHistory table...
3
2402
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 Windows 2000 Server I got the following error: Compiler Error Message: CS0433: The type 'CrystalDecisions.Shared.ExportOptions' exists in both ...
1
2955
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 Regards
3
5546
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 attempted to abort thread 3560. This may result in a corrupt state or resource leaks if the thread being aborted was in the middle of an operation that modifies global state or uses native resources. Aborting threads other than the currently...
8
1679
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 - $15,000 Vegatables - 2007 - $25,000 Say I want to show that data in Tabular view with Category being the Y-Axis and Year being the X-Axis, how would I go about doing this? I'm having a
6
2486
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 the report on the browser I get a logon page even though my dataset has a connection string saved within it. When I preview the data in the dataset I see it no problem. however the report doesn't seem to know that the dataset is there or that the
2
11152
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 ADO.Net. My problem is that the report does not seem to be very good about releasing the memory. It appears that the report holds on to memory until the ASP.net session is torn down. So, if I run the report over and over, I will eventually get an...
1
5638
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 apply the filters to the fields in the report. I would like to use this form to filter the report within a date range (Raised Date From and Raised Date To), using unbound text boxes, without having to specify the criteria within the report's...
0
10306
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10138
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8961
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7485
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6724
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5373
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5503
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3632
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2869
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.