Jul 12, 2004 #1 OAKLEYS21 MIS Jun 28, 2004 20 CA Can someone tell me why this formula doesn't work? =Sum(IIf([AccountName],"CURRENT PORTION - INV LEASES",[DepositAmount])) Thanks
Can someone tell me why this formula doesn't work? =Sum(IIf([AccountName],"CURRENT PORTION - INV LEASES",[DepositAmount])) Thanks
Jul 12, 2004 #2 S SkipVought Programmer Dec 4, 2001 47,492 US O, Your formula needs an EXPERSSION that will return TRUE or FALSE... [tt] =Sum(IIf([AccountName],"CURRENT PORTION - INV LEASES",[DepositAmount])) [/tt] like... [tt] =Sum(IIf([AccountName]="Some Account Name","CURRENT PORTION - INV LEASES",[DepositAmount])) [/tt] Skip, Want to get great answers to your Tek-Tips questions? Have a look at faq222-2244 Upvote 0 Downvote
O, Your formula needs an EXPERSSION that will return TRUE or FALSE... [tt] =Sum(IIf([AccountName],"CURRENT PORTION - INV LEASES",[DepositAmount])) [/tt] like... [tt] =Sum(IIf([AccountName]="Some Account Name","CURRENT PORTION - INV LEASES",[DepositAmount])) [/tt] Skip, Want to get great answers to your Tek-Tips questions? Have a look at faq222-2244
Jul 12, 2004 Thread starter #3 OAKLEYS21 MIS Jun 28, 2004 20 CA Still didn't work?? what I want to do is total the values in the accounts with the same name. Any other ideas? thanks. Upvote 0 Downvote
Still didn't work?? what I want to do is total the values in the accounts with the same name. Any other ideas? thanks.
Jul 12, 2004 #4 S SkipVought Programmer Dec 4, 2001 47,492 US [tt] Select AccountName, Sum(DepositAmount]) From MyTable Group By AccountName [/tt] Skip, Want to get great answers to your Tek-Tips questions? Have a look at faq222-2244 Upvote 0 Downvote
[tt] Select AccountName, Sum(DepositAmount]) From MyTable Group By AccountName [/tt] Skip, Want to get great answers to your Tek-Tips questions? Have a look at faq222-2244