Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 11th, 2008, 07:15 AM
Authorized User
Join Date: Mar 2006
Location: , , .
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!


Reply With Quote
  #2 (permalink)  
Old February 12th, 2008, 08:39 AM
Friend of Wrox
Points: 9,611, Level: 42
Points: 9,611, Level: 42 Points: 9,611, Level: 42 Points: 9,611, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Mar 2004
Location: Washington, DC, USA.
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts

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?


Look it up at: http://wrox.books24x7.com
Reply With Quote
  #3 (permalink)  
Old February 12th, 2008, 08:50 AM
Authorized User
Join Date: Mar 2006
Location: , , .
Posts: 83
Thanks: 1
Thanked 0 Times in 0 Posts

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.

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 12:53 AM.

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