[QUOTE]I have tried:
Code:
Dim chartRS As ADODB.Recordset
Set chartRS = New ADODB.Recordset
chartRS.Open "Select CustomerID, TaskID From CUSTOMER WHERE CUSTOMER.TaskID=TASK.TaskID"
Set MSChart1.DataSource = chartRS
I am having a problem with MSChart as well but mine excepting ther data but not displaying anything. your problem with you recordset is you dont have a connection
Code:
Dim chartRS As ADODB.Recordset
Set chartRS = New ADODB.Recordset
chartRS.Open "Select CustomerID, TaskID From CUSTOMER WHERE CUSTOMER.TaskID=TASK.TaskID","(adodb.connection here! or the connection string)"
Set MSChart1.DataSource = chartRS