473,800 Members | 2,323 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Highlight a date range in a chart

I have a need to highlight a date range in a bar chart. If the
"highlighti ng" is accomplished by changing the bar column color for the
specific months in the date range, that would be great.

Here's an example:

I'm plotting meter usage against dates on the chart. The dates are typically
the first day of the month.

So assume the chart range is 1/1/2000 through 10/31/06, but for the date
range 11/1/05 through 10/31/06 I want those columns on the chart to be a
different color than the other bar columns on the chart (1/1/2000 through
10/31/2005).

I thought I could try selecting the two different ranges (1/1/2000 through
10/31/2006 and 11/1/2005 through 10/31/2006) and that that would give me two
different colors (i.e Access would view this as two different series). But it
doesn't seem to be working for one SQL statement. I also tried a Union
Select but that didn't result in different colors being shown.

The chart RowSource property is to be set to an SQL statement in code.

--
Message posted via AccessMonster.c om
http://www.accessmonster.com/Uwe/For...ccess/200611/1

Nov 25 '06 #1
0 1447

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

Similar topics

4
12917
by: Bill R via AccessMonster.com | last post by:
I get this Run-Time Error 1004 whenevery the following code runs: On Error GoTo XLSheet2 Set objXL = CreateObject("Excel.Application") With objXL Set objWkb = .Workbooks.Open(strPath) With objWkb Set objSht1 = .Worksheets("Actual_Releases_by_Week") With objSht1 If IsNull(.Range("A2")) Or .Range("A2") = "" Then GoTo
9
3052
by: Devron Blatchford | last post by:
Hi there, Just wondering if I change the back and fore colour of a listview item when the mouse hovers over it? I want to overide the default windows colour. Can someone please tell me how to do this? Thanks Devron
5
10924
by: Atara | last post by:
I am trying to convert the following code to VB .Net, I still have some gaps (the lines that are marked with (*)) and also I need an ending condition for the while loop. any help would be appreciated. Thanks. Atara. ------------------------- Original code:
0
2725
by: pmclinn | last post by:
The code below takes the data from the S column and grabs all the data and graphs it. The problem is this example grabs 500 cells worth of data and some of these cells = nothing. How do I rescope a range to prevent the data that is = nothing not to display.... Dim app As New Excel.Application ' app.Visible = True Dim Doc As Excel.Workbook = app.Workbooks.Open("C:\Filename.csv") Dim Sheet As Excel.Worksheet = Doc.Sheets(1)
5
3294
by: saratogajoe | last post by:
For a Medical Chart Audit database, I need to require the user to choose a "From" date and a "To" date
2
2446
by: vijayasankarb | last post by:
Hi All, I am developing one application in VBScript which automatically generates excel charts. But, I have a problem here. I need to get the range value(like A1:B50) before calling the Activechart.setSourcedata function..... In the below code I am asking the user to enter the range. But, It is not requiremnet, The user just gives the .xls file. We need to get the range of the data. Please give me the code which gets the range of an...
31
2718
by: freeflyer30339 | last post by:
In my Access '03 table I have three columns. P/N, StartDate,EndDate. Most of the time the start date and the end date are the same. Occasionally the end date can than a couple of days from the start date. I am trying to chart my workload for each day. So if a part is in the shop for 4 days, it gets counted for all 4 days. P/N StartDate EndDate 1 1/1/08 1/1/08 2 ...
0
3436
by: CoreyReynolds | last post by:
Hey all, I have a piece of code that dumps a bunch of data into a spreadsheet. Also rearranges it into a pivot table and then graphs the pivot table as well so my boss can get a clear view of the data. This question is two part. One, I seem to be getting the title error at the starting line stating: oSheet.Range(rng).Select With Selection shp.Left = .Left shp.Top = .Top
5
2404
by: rwalle | last post by:
I have developed a line chart inside a report to display some data, it takes data from a query that has a WHERE parameter to define date I want to view, I ´d like to set this date parameter not filling the parameter pop up but from a form text box with the date picker, I have used this method for several reports using the WHERE clause and it worked but since the report containig the chart doesn't have any data but the chart, I dont know how...
0
9691
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9551
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10505
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
10276
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...
1
10253
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6813
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
5471
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
5606
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2945
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.