Hello Dear friends, I need your help...
I have a database in which I sum Price, I'm using the VBA
=DSum("UnitPrice","DATA","Dateofpurchase >= #01/01/1998# AND Status Not In ('Removed')")
I works but I need to add some criteria.. This variant sums Unit price from 1998 till now. I added some fields with values in my database and want to sum by them
Field (Account) with values BUDGET1, BUDGET2 and Field (AccType) With Values 013, 065
VBA Must DSUm According Unitprice + Account -Budget1, Acctype - 013 and Dateofpurchase as it is in my old code
I Did something like:
=DSum ("Unitprice", "DATA", "Account = 'Budget1'", "AccType = '065'") But this not working I have something wrong
Please Help
I have a database in which I sum Price, I'm using the VBA
=DSum("UnitPrice","DATA","Dateofpurchase >= #01/01/1998# AND Status Not In ('Removed')")
I works but I need to add some criteria.. This variant sums Unit price from 1998 till now. I added some fields with values in my database and want to sum by them
Field (Account) with values BUDGET1, BUDGET2 and Field (AccType) With Values 013, 065
VBA Must DSUm According Unitprice + Account -Budget1, Acctype - 013 and Dateofpurchase as it is in my old code
I Did something like:
=DSum ("Unitprice", "DATA", "Account = 'Budget1'", "AccType = '065'") But this not working I have something wrong
Please Help
Last edited: