Thank you for taking the time to report an issue.
What's wrong... Please write below.
I have two chart objects which site one above the other in a form. Both charts have identical x-axis (24 months).
Chart one shows daily sales amount.
Chart two shows the daily price.
I need both charts perfectly aligned so the user can compare the results.
Most of the time the charts are aligned but for some selections the axis becomes out of sync slightly. I've checked the data behind both charts and the number of data items matches (i.e. the same days appear).
Is there a way of either fixing the chart axis or is it possible to have two charts in the same object
I have a form that has two types charts(Those that change with each record selected, and those that are general running monthly charts not based off a record), which are all visible and functional in design, form, and layout views. When I go to print a record the charts that corresponds to the record selected do not print (only the outline of the chart prints)
Here is what I checked/done so far.
In design view:
chart is enabled and not locked
Display When - always
Visable - Yes
Data is correct
Query is correct
Deleted the effected charts and re-created them
The source query I am using to create the chart with the Wizard is:
SELECT KWB_Raw.Well, (Year([Date])) AS SampleDate, KWB_Raw.Observed, KWB_Raw.Simulated, KWB_Raw.ChartOrder FROM KWB_Raw; WHERE ChartOrder = 1
I want the next chart to contain the same data only 'ChartOrder' will be equal to 3, etc etc. The Wizard is also summarizing 'Simulated' and 'Observed' as the Max of each. I'm guessing the SQL statement will need to have a variable that increments +1 each cycle to get the ChartOrder to continue to increase
currently I am able to create the the required charts, but not able to add them into one single chart sheet here is some of my current code:
Set container = Charts.add
Set graph = Charts.add
graph.ChartType = xlColumnStacked
graph.SetSourceData Source:=ws.Range("$B$" & int_start & ":$E$" & int_end)
graph.PlotBy = xlColumns
graph.location Where:=xlLocationAsObject, Name:=container.Name
the last line constantly gives me an error,
I added them as ole objects.
How can I connect using VBA to this ole objects worksheet
(in order to update charts data) ?
You can set conditional formatting for a text box or a combo box control. You can change the formatting based on the control's own value, or you can use an expression to change the formatting based on the values contained in other fields or controls. On a form, you can use conditional formatting to disable a control, and you can cause the formatting of a control to change when the cursor is positioned in that control.
What do you want to do?:
*Apply conditional formatting to a control based on its own value
*Use an expression to apply conditional formatting to one or more controls
*Change the formatting of a control on a form that has the focus
*Remove conditional formatting from one or more controls
*Create alternating row colors on a report
Month | Type | TypeCount
2 | A | 3
2 | B | 4
2 | C | 5
3 | A | 4
3 | B | 4
3 | C | 6
4 | A | 7
4 | C | 2
4 | D | 1
I want to create charts (or pivot chart view) such that first chart display data only for A - that is, count of Type for each month, then another chart with data only for B and then another chart only for C.
Also, I want these three charts on the same report/form - which ever is better.
The reason I ask this is that I have a report with quite a few text boxes that currently all have some sort of Conditional Formatting on them (Not all have the same Conditional Formatting). I know that when you only have a few controls that require Conditional Formatting, the built in solution in Access 2007 should be sufficient, however when the number of controls grows and when the report has multiple records that require each control to be handled on each record, the Conditional Formatting becomes very slow (much like receiving 1000 paper cuts) and renders the report as pointless considering a user must run it for 10's of minutes to an hour to complete.
So, with that said, I am really just looking for anyone's suggestion as to whether I should invest some time in the VBA coding to do what the Conditional Formatting does, or do I just go back to the requestor and let them know that formatting all these fields is too much for the system to handle.
So far, I have thought I could acheive this by having an unbound form with fields to add criteria including a minimum and maximum date for the chart to display.
This min and max date would be past to the report to set the min and max time scale of the charts. By doing this I can overlay several charts to compare the different data but the time scale would match on each chart. Hope this makes sense so far.
Anyway does anyone know how to set the x axis values using parameters? The chart options don't like a parameter references entered into them