hello my self avi. i m developing one bank application in vb 6 and ms access and ado
i have one table Receiptvoucher. fileds r as follows
Transid - double - primary key
Name string
ReceiptDate Date
Amount Currency
suppose Mr. Amir has saving A/c in bank. and he deposit daily [minimum]atleast 100 Rs. in his A/C then that entry is saved in this table. so there are lots of entries of mr. Amir in this table.
so if i give start date as 05/01/2004 and end date as 10/11/2004 then i want to find out the month wise sum of amount of Mr. Amir i.e how much amount he deposited in january from date 05 to 31 , how much in feb[complete feb] same for march,april.......and how much he deposited in 11 th month i.e november up to date 10.
i.e in short if i give start date and end date ,how could i find out the month wise total [only those months should be included that comes in provided date]
plz give me some suggetion on this problem. actually i want this in only one query then it may be nested or sub query or any other. i want to avoid loops. but if not possible give me suggetion in loop also
i have one table Receiptvoucher. fileds r as follows
Transid - double - primary key
Name string
ReceiptDate Date
Amount Currency
suppose Mr. Amir has saving A/c in bank. and he deposit daily [minimum]atleast 100 Rs. in his A/C then that entry is saved in this table. so there are lots of entries of mr. Amir in this table.
so if i give start date as 05/01/2004 and end date as 10/11/2004 then i want to find out the month wise sum of amount of Mr. Amir i.e how much amount he deposited in january from date 05 to 31 , how much in feb[complete feb] same for march,april.......and how much he deposited in 11 th month i.e november up to date 10.
i.e in short if i give start date and end date ,how could i find out the month wise total [only those months should be included that comes in provided date]
plz give me some suggetion on this problem. actually i want this in only one query then it may be nested or sub query or any other. i want to avoid loops. but if not possible give me suggetion in loop also