elvenmaiden
Programmer
This is what I have, but it doesn't seem to recognize the AcceptanceRate as a valid sort field.
SELECT qryStats.Name, qryStats.Subject, qryStats.Questions, qryStats.Solutions, AVG(qryStats.AcceptRate)as AcceptanceRate FROM qryStats WHERE qryStats.UserEmail = '" + mstrUser + "' AND qryStats.OrigDate >= # " & DTPBegin.Value & " # AND qryStats.OrigDate <= # " & DTPEnd.Value & " # GROUP BY qryStats.Name, qryStats.Subject, qryStats.Questions, qryStats.Solutions ORDER BY AcceptanceRate
SELECT qryStats.Name, qryStats.Subject, qryStats.Questions, qryStats.Solutions, AVG(qryStats.AcceptRate)as AcceptanceRate FROM qryStats WHERE qryStats.UserEmail = '" + mstrUser + "' AND qryStats.OrigDate >= # " & DTPBegin.Value & " # AND qryStats.OrigDate <= # " & DTPEnd.Value & " # GROUP BY qryStats.Name, qryStats.Subject, qryStats.Questions, qryStats.Solutions ORDER BY AcceptanceRate