Ggrouping and do calculation on number of records (1 Viewer)

anzacks

Registered User.
Local time
Tomorrow, 01:01
Joined
Mar 14, 2008
Messages
18
Hi all,

I tried to make a query that can do calculation (sum/count/avg/etc) on certain number of consecutive record.
e.g.

Time; Value
1; 5
2; 3
3; 4
5; 2
7; 5
11; 8
20; 5
22; 3
25; 1

Let say i want to sum each 3 consecutive records
Time group; Sum
A; 12
B; 15
C; 9

Any function can be use for this?

Thanks.
 

MStef

Registered User.
Local time
Today, 18:01
Joined
Oct 28, 2004
Messages
2,251
Look at "DemoGroupEach3A2000.mdb"
Look at tables, queries, Form1, Module1.
Open Form1 and try.
 

Attachments

  • DemoGroupEach3A2000.zip
    13.4 KB · Views: 89

Users who are viewing this thread

Top Bottom