Topics Search

Formatting Charts

Formatting Charts
Views: 186
A chart created using the New Form dialog box is positioned on a form. As such, the form acts as its parent. The chart can only fit inside of the form. Based on this, you can enlarge a form to make available more space for the chart. After enlarging and/or heightening a form, you can increase the side of the chart to have a bigger picture and better appreciate a chart.
Sponsored Links:

Similar posts...


Aligning two charts x-axis parallel to each other

Aligning two charts x-axis parallel to each other Icon
I'm using Access 2003.

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

Microsoft Graphs

Microsoft Graphs Icon
I am an intermediate Access user, working with Access 2007, and I am stuck.

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

Source Data:

Data is correct
Query is correct

Charts themselves:

Deleted the effected charts and re-created them

VBA to Create / Add Multiple Charts to Report

VBA to Create / Add Multiple Charts to Report Icon
I would like to create a report that has multiple charts. Preferably two per page. I would like line charts. I can create one of these charts using the Chart Wizard, but I can't figure out how to add additional charts. There are going to be 221 charts in total, so automating it is a must.

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

Nested Charts In Excel

Nested Charts In Excel Icon
I am trying to place 3 stacked column charts into one single chart sheet, I have been able to do this using excel itself but I would like to automate the process from access.

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,

Working with OLE excel charts in Access 2010

Working with OLE excel charts in Access 2010 Icon
I need to add excel charts to my access application.
I added them as ole objects.

How can I connect using VBA to this ole objects worksheet
(in order to update charts data) ?

Change the appearance of a control by using conditional formatting

Change the appearance of a control by using conditional formatting Icon
Conditional formatting allows you to selectively highlight certain data on your form or report so that it is easier to understand. For example, you might want to format negative numbers in a red font to make it clear that those records need further attention.
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

Multiple column charts for the same query

Multiple column charts for the same query Icon
I have a query in the format

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.

Conditional Formatting vs. VBA Formatting

Conditional Formatting vs. VBA Formatting Icon
I have been researching this for some time now but haven't received any sound advice on whether it is faster to perform formatting on text boxes in a report via VBA or the built in Conditional Formatting.

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.

Customizing Charts

Customizing Charts Icon
In our introduction to charts, we created one with standing rectangular boxes. This is called a column chart and is only one of the types of charts available. Microsoft Access (indeed Microsoft Office) provides many other flavors you can use, depending on the type of analysis you want to perform. When starting a (new) chart, in the third page of the wizard, you can select the type of chart you want. After the chart has been created, you may prefer another type of chart. In most cases, you can change the type of chart, easily.

Setting x axis scale in charts

Setting x axis scale in charts Icon
I want to overlay some charts (in a report) that are based on different queries but all contain a date field.

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