473,382 Members | 1,387 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,382 software developers and data experts.

MS access - cannot get bar chart series to be orange color

Ms access graph. Cannot get orange in bar chart for a series. Believe this is due to the palette. Trying to determine how in code to fix this. It appears to be approx. the RGB values passed to the series when this is set. Comes out fine as table background... however, in chart... brown, green, purple... depends on shade of orange.
Apr 16 '18 #1
1 1474
zmbd
5,501 Expert Mod 4TB
Sac3244,
Looks like your question was lost in the shuffle.

The Graph object in Access has a few things that are not obvious to the VBA editor so a bit of hunt and peck.

First is the RGB value for orange:
Google search rgb(255,165,0)= 42495

Next is a bit knowledge from MS-Excel charts so I guessed a bit at how the graph object worked in MS-Access...

Creating a table such that:
ID (auto), Series1 (Long), Series2 (Long)
Just added a few random numbers

Created a form based on the above data.
Added a graph control and named it "ctrl_graph"
Added a command button and named it "ctrl_btn"

Added an on_click event to ctrl_btn
Expand|Select|Wrap|Line Numbers
  1. Private Sub ctrl_btn_Click()
  2.   Me.ctrl_Graph.seriescollection(1).interior.Color = 42495
  3. End Sub
This changed the default color from blue to the orange for "Series 2" (second bar on the graph) so it appears that the index for the seriescollection is zero based.

>Noticed that once the series color was changed via code, that closing and reopening the form and database did NOT reset the color to the default despite the fact that I did NOT save the change.

Hope that sets you in the proper direction.

-Z
Jul 10 '18 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: efaramarzi | last post by:
I use a TChart component v4 which a point series has been added to it. I want to add an annotation text box (a mark with my desirable text) to each point. Unfortunately the Marks property of the...
1
by: Markus | last post by:
Hi folks- this will be a piece of cake for you: The tables tblOne (Number, Name) tblTwo (Number, Revenue) are connected through a query, using one field as connector:
2
by: Tim | last post by:
Hi, I'm using ASP to connect to an ACCESS database (db1) via ODBC. The table that I connect to (table1) in db1 is an ACCESS query linked to data in another database (db2). When I try the...
2
by: John Donnell | last post by:
We have recently added another PC to the network and have run into difficulty when trying to open access files from the server using the new box. We get the error message 'MS Access cannot open...
0
by: zoum79 | last post by:
When creating a Pivot Table in Access, the Y axis gives the Sum, Average, SD etc... and I need to make it show the individual values. For example, for individual 1 at day 1/2/3/4, I need it to show...
2
by: TGG61 | last post by:
I have an Access 2000 query that asks the user for the start date & end date for a report or chart. In the Access report, I can display the start & end dates entered in the query in the header of the...
0
jbt007
by: jbt007 | last post by:
All - I am trying to track progress against a plan. It seems Access (2003) plots all points (even zeros, nulls, and "" Strings) as zeros for all dates. If you are 50% done with progress, your...
2
by: Cam1200 | last post by:
Is there way to show data as an average in Access pivot chart? It is currently defaulted to show sum for the data fields in the chart but I need to show the data as an average.
1
by: Goss | last post by:
I have added to the query criteria, and the query runs fine, but when I open the Chart in print view the input box asks me for the month 3 times? any ideas
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.