Below are the two controls I am trying to use, but neither one will allow me to get the data. Is this something I should be doing in C#? The select command works in MSAccess, because that is where I created it. qcustcnt is a query. The select I pasted in is also a query, but VS2010 doesn’t seem to want me to use them, so I tried to bring it insto VS2010.
<asp:AccessDataSource ID="AccessDataSource2" runat="server"
DataFile="~/App_Data/cbf.accdb"
SelectCommand="SELECT DISTINCTROW customer.custsales, Count(*) AS [Count Of customer],
qcustcnt.CountOfcustsales, [count of customer]/[countofcustsales] AS salespercent
FROM customer, qcustcnt
GROUP BY customer.custsales, qcustcnt.CountOfcustsales;">
</asp:AccessDataSource>
<telerik:RadChart ID="RadChart2" runat="server"
DataSourceID="AccessDataSource2">
</telerik:RadChart>
I have it working now. What I ended up doing was removing all the data Access Controls. I added one and that allowed me to use the Queries. When I added the second one it would not. I don’t know why but it appeered to be pointing to a database that didn’t exist. I deleted that control and copied and Paisted the first control to create a second one and that allowed me to access the Queries in the database. I still don’t know whats going on, but I have moved passed the problem.