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

Graph Object: Forcing .DataSheet column's numeric format?

The following code is working for everything but the column formatting
on lines 9191 and 9192. It doesn't trap out - just doesn't "take".

"fChart" is a pointer to the open form that has the Chart object on it.
--------------------------------------------------------------
Dim myChart As Graph.Chart
9110 Set myChart = fChart!gphStats.Object.Application.Chart
9111 With myChart
9112 .HasTitle = True
9113 .ChartTitle.Text = myTitle
9114 .ChartTitle.Font.Size = 8
9119 .ChartTitle.Font.Bold = False

9120 .HasLegend = False
9129 .ChartType = xlLine

9170 .Axes(xlValue).HasTitle = False
9171 .Axes(xlValue).TickLabels.NumberFormat = "#0.000"
9172 .Axes(xlValue).TickLabels.Font.Bold = False
9179 .Axes(xlValue).TickLabels.Font.Size = 8

9180 .Axes(xlCategory).HasTitle = False
9181 .Axes(xlCategory).TickLabels.NumberFormat = "mm-yy"
9182 .Axes(xlCategory).TickLabels.Font.Name = "Arial" '"Microsoft
Sans Serif"
9183 .Axes(xlCategory).TickLabels.Font.Size = 8
9184 .Axes(xlCategory).TickLabels.Font.Bold = False
9185 .Axes(xlCategory).TickLabels.Orientation =
xlTickLabelOrientationUpward
9189 .Axes(xlCategory).MinorTickMark = xlTickMarkInside

9191 .Application.DataSheet.Columns(1).NumberFormat = "mm-yy"
9192 .Application.DataSheet.Columns(2).NumberFormat = "0.000000"
9199 End With
--------------------------------------------------------------

I'm starting to wonder if I'm trying to fool Mother Nature by going
after the .DataSheet props directly.

Could it be that there are some props on the Chart itself that I could
set to acheive the same end?

Nov 13 '05 #1
1 5924
PeteCresswell wrote:
Could it be that there are some props on the Chart itself that I could
set to acheive the same end?


Pete, I don't have any direct answer for you, but something I found very
useful about 6 years ago when I was doing chart automation in Access was
to first do it in Excel. If there was a specific property I wished to
change, I'd set up a graph in Excel and then record a macro. Then I'd
change the property I wanted, stop the macro and then look at the VBA.

Most times, this gave me the properties I was looking for to change in
A97 VBA. There were the occasional things that did not seem to have a
corresponding property or, more likely, I was unable to find it in
Access VBA, but this approach worked beautifully.

My apologies if you're doing this already and for not directly answering
your question.
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me
Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Milo Woodward | last post by:
I have some columns of data in SQL server that are of NVARCHAR(420) format but they are dates. The dates are in DD/MM/YY format. I want to be able to convert them to our accounting system format...
1
by: JD Kronicz | last post by:
Hi .. I have an issue I have been beating my head against the wall on for some time. I am trying to use late binding for MS graph so that my end users don't have to worry about having the right...
3
by: Jeff | last post by:
Hi I have a report with a graph on it and want to change the minimum and maximum values for the value axis when it is previewed. This can't be done by adding code in the Open event as once the...
2
by: Dave | last post by:
I'm trying to follow the examples in VBAGRP9.CHM and/or VBAGR10.CHM with no success. I'm trying to Chage the Legend Colors based on Content so that I can establish a certain color format on...
2
by: MLH | last post by:
A97 Am having difficulty displaying graph in Form View that I see fine in graph control on form opened in design view. I know I'm doing something wrong. If I open the form in design view - I...
11
by: Andreas.Burman | last post by:
Hi What is the best way to implement a undirected weighted graph ADT in javascript?
2
by: savas_karaduman | last post by:
I supposed that creating graph with access would be as easy as how I could with Excel. But it seems to me that there is some tricky point here. What i am trying to do and what i got is as follow: ...
0
by: jj | last post by:
Hi ng I have a graph ved a stacked bar and a datasheet I would like to change the order of the bars, and to change the format of the numbers to standard with 0 digits. The query which the...
2
by: ruthboaz | last post by:
Hi, My database is in SQL Server with Access as front end. I have a Microsoft Graph Chart for which the data is picked up with a query from the SQL Server. In the DataSheet the first row is...
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
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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.