Link to home
Start Free TrialLog in
Avatar of triphen
triphen

asked on

VB6 Chart data

Hello experts,

I am using a CMD button with this code:

Adodc2.RecordSource = "select DTIME, NETSALES from data where opendate = '" & OPENDATE.Caption & "'"
Adodc2.Refresh

This produces a result similar to:

3:00:00PM $100.00
3:00:30PM $115.00
3:01:00PM $125.00
and so on, in DataGrid2. Now my question is how can I chart this DataGrid2 data in an MSChart?

DTIME should be X axis and NETSALES be the Y axis

The data table is located in an Access DB.

Looking forward to your replies :)
Avatar of coolcurrent4u
coolcurrent4u
Flag of United States of America image

first of all, all date queries should be done this way

Adodc2.RecordSource = "select DTIME, NETSALES from data where opendate = #" & trim$(OPENDATE.Caption) & "#"
ASKER CERTIFIED SOLUTION
Avatar of coolcurrent4u
coolcurrent4u
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial