Show grouped date in Chart (1 Viewer)

Edwik

Registered User.
Local time
Today, 20:49
Joined
Aug 19, 2005
Messages
40
Hi!

I use MS Graph and need show 2 data types:
1. Invoice Value, EUR
2. Date
Date axis group records by month, for Example Period from 2005.01.01 And 2006.01.01 has 12 positions in Date Axis.
Her I have problem: I need show sum of Values for every month.
For example in Period from 2005.01.01 till 2005.02.01 I have 3 Values: 200, 500, 600EUR. Her I need to show 1300EUR, and so every month. Her is my strandart code:

Dim strSQL1 As String
strSQL1 = "SELECT Date As Date, Value FROM Table WHERE (Date BETWEEN 2005.01.01 And 2006.01.01)"
Me!chrStatistik.RowSource = strSQL1

Thank You in advace for help.
 
Try using the Group by option for a select statement....

Select ...
From ...
Where ...
Group by ....
Having ....
Order by....
 
can You write an exapmple, please?!
 
How can I give instruction to group by month?
 

Users who are viewing this thread

Back
Top Bottom