Solved

Chart

Posted on 2000-04-21
7
234 Views
Last Modified: 2010-05-02
like this, i has 1 data control and inside that data control i has 3 field.

so now i want to create a chart and i trying to do it in ms chart.

so how do i do it ?
0
Comment
Question by:JOHNHO
  • 4
  • 2
7 Comments
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 2737785
If it is an ADO data control, you can simply say:
Set chart1.DataSource = Adodc1
0
 

Author Comment

by:JOHNHO
ID: 2737898
whats the adodc1 mean ?

can u be more step by step emoreau ?
thanks a lot.
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 2738054
adodc1 is the name of an ADO data control. Is this what you are using?

Check VB help file for the DataSource property.
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

Author Comment

by:JOHNHO
ID: 2739035
i dont had time to check the ado emoreau.

im using data control which is data1.xxxx.

pls help me.
0
 

Author Comment

by:JOHNHO
ID: 2739077
i had try your way. this is the code that i sue.

public sub formload()
chart1.datasource=data1.recordsouse
end sub

the above code promtp me the error.

and i try the other one.

public sub formload()
chart1.datagrid=data1.recordsource
end sub

also problem.

help me please.
0
 
LVL 1

Accepted Solution

by:
prakashbitra earned 50 total points
ID: 2739441
Hi JOHNHO,

    u might be using chart for the first time is it so. send all the data to a grid control for better usage of a grid and also to the user.

use the below code where ever u necessary.

MSChart1.ColumnCount = 2
MSChart1.RowCount = MSFlexGrid1.Rows - 1

Private Sub Generate_Chart()
Dim i, j As Integer

For i = 1 To MSFlexGrid1.Cols - 1
    MSChart1.Column = i
    MSChart1.ColumnLabel = MSFlexGrid1.TextMatrix(0, i)
    For j = 1 To MSFlexGrid1.Rows - 1
        MSChart1.Row = j
        MSChart1.Data = MSFlexGrid1.TextMatrix(j, i)
        MSChart1.RowLabel = MSFlexGrid1.TextMatrix(j, 0)
    Next j
Next i
End Sub


i am very much sure that u will be succesful in doing so.

bye
happy working
0
 

Author Comment

by:JOHNHO
ID: 2739735
Thanks i can do it.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VBA color chart bars 12 86
Reading the Contents of a Directory In Access VBA 5 70
vb6 connector to SQL Server 2 37
Help me. 3 56
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question