Solved

Chart

Posted on 2000-04-21
7
238 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 

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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

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…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month3 days, 13 hours left to enroll

630 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