Table1 | |||||
ID | NoRek | NoSlip | TglSetor | NamaCust | DanaDeposito |
1 | 100 | 1 | 1/2/2011 8:00:00 AM | access | $1,000,000.00 |
2 | 101 | 2 | 1/2/2011 9:00:00 AM | wizards | $1,000,000.00 |
3 | 102 | 3 | 2/2/2011 8:00:00 AM | aaa | $500,000.00 |
Query1 | ||||||
ID | NoRek | NoSlip | TglSetor | NamaCust | DanaDeposito | Jumlah |
1 | 100 | 1 | 1/2/2011 8:00:00 AM | access | $1,000,000.00 | 1,000,000.00 |
2 | 101 | 2 | 1/2/2011 9:00:00 AM | wizards | $1,000,000.00 | 2,000,000.00 |
3 | 102 | 3 | 2/2/2011 8:00:00 AM | aaa | $500,000.00 | 2,500,000.00 |
Dear bang achmad friyanto,
Buat Query sbb:
SELECT A.ID, A.NoRek, A.NoSlip, A.TglSetor, A.NamaCust, A.DanaDeposito, Format (DSum("DanaDeposito","Query1","[id]<=" & [id]),"Standard") AS Jumlah
FROM Table1 AS A;
ID bisa disesuaikan berdasarkan NoSlip/TglSetor tergantung kebutuhan yang penting unique dan menandakan urutan, guna menjumlahkan record tsb dengan record sebelumnya.
Best Regards,
AccessWizards
From: belajar-access@yahoogroups.com [mailto:belajar-access@yahoogroups.com] On Behalf Of achmad friyanto
Sent: Tuesday, February 01, 2011 11:11 PM
To: belajar-access@yahoogroups.com
Subject: [belajar-access] cara menjumlahkan field
permisi pak.. |
__._,_.___
SPAM IS PROHIBITED
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
__,_._,___
No comments:
Post a Comment