Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 11th, 2008, 07:15 AM
Authorized User
 
Join Date: Mar 2006
Posts: 83
Thanks: 1
Thanked 0 Times in 0 Posts
Default Creating Scatter Chart Programatically

Hiya folks!

I have a table with the following fields:

ArticleDescription (text)
Popularity (percantage)
ContributionMargin (Euros)
PopularityIndex (percentage)
AverageContributionMargin (Euros)

I am trying to create a scatter chart in an Access report (in the footer) that shows the following:

1. X-Axis: ContributionMargin (Euros)

2. Y-Axis: Popularity (percantage)

3. Plots (X,Y): ArticleDescription (I want the name of the article to appear near the plot).

4. The X-axis to cross the Y-axis at PopularityIndex value.

5. The Y-axis to cross the X-axis at AverageContributionMargin value.

6. Not sure how to explain this, let us assume that the chart automatically displays the x-axis from -10 to 10. And let us assume that the lowest and highest values of contributionmargin that I will plot are -1 and 2, respectively, I would want the chart to show the x-axis from -2 to 3 instead of the -10 to 10. The same goes for the y-axis (popularity).

Hope you can help!

Thanks!

 
Old February 12th, 2008, 08:39 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

What is the programmatic part of the question? It seems to me that if you handle the query parameters correctly, that this would not be an issue. If you create the report and then pass parameters to it, it should display how you want it. To create the chart with the values you want, just format the axis min and max values.

Did that help?

mmcdonal

Look it up at: http://wrox.books24x7.com
 
Old February 12th, 2008, 08:50 AM
Authorized User
 
Join Date: Mar 2006
Posts: 83
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Hello! Thanks for the reply!

The only thing I have been able to do is to create the report, and to create the scatter chart - with the x-axis and y-axis defined as I want (I used the wizard so it was pretty straight forward). What I cant seem to do is the rest (and also to make the chart in the report appear as it should. It is always showing up blank - just white.

In Excel, I was able to do what I need, but when I tried to format the chart in the same way in Access report, it doesnt give me the same funcionality.

I am not sure if this answered your question? Let me play a little with the queries and I will get back to you.

Thanks!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Scatter chart using Java script madganesh Javascript How-To 1 June 17th, 2007 06:48 AM
scatter XY chart using Script madganesh VBScript 0 June 13th, 2007 05:05 AM
Please help in creating Line Chart in ASP shinde.chetan Classic ASP Basics 2 February 6th, 2007 07:15 PM
after creating chart -> type mismatch error kritimehrotra Excel VBA 2 July 19th, 2006 01:58 PM
VB App creating an Area Chart in MS Word mbyndas VB How-To 0 September 30th, 2003 08:18 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.