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 :)
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 :)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Adodc2.RecordSource = "select DTIME, NETSALES from data where opendate = #" & trim$(OPENDATE.Caption) & "#"