access2010
Registered User.
- Local time
- Yesterday, 19:47
- Joined
- Dec 26, 2009
- Messages
- 1,181
Hello, I am trying to add up two columns of figures and am having a problem, which probable requires a simple solution.
Column name = TransactionType
Group name = Bought_$ = this field will always have a quantity
Group name = DRIP = this field may not be used
I am trying to add up the total quantities of all the Bought_$ and Drip quantities and have used the two codes below without success.
=Sum(IIf([TransactionType] Like "*Bought_$*" Or Like "*DRIP*",[TransactionQuantity],0))
=Sum(IIf([TransactionType] Like "*Bought_$*" + Like "*DRIP*",[TransactionQuantity],0))
Your suggestions, will be appreciated.
Paul
Column name = TransactionType
Group name = Bought_$ = this field will always have a quantity
Group name = DRIP = this field may not be used
I am trying to add up the total quantities of all the Bought_$ and Drip quantities and have used the two codes below without success.
=Sum(IIf([TransactionType] Like "*Bought_$*" Or Like "*DRIP*",[TransactionQuantity],0))
=Sum(IIf([TransactionType] Like "*Bought_$*" + Like "*DRIP*",[TransactionQuantity],0))
Your suggestions, will be appreciated.
Paul