razorkat99
Still figurin' it out
- Local time
- Yesterday, 23:18
- Joined
- Oct 22, 2007
- Messages
- 35
Well, they scrapped the whole other form and went a somewhat different direction, but still an issue at hand for my IIf statement calculating correctly.
*I have two Account Groups: MHTL and MHTLCM
*I need to count the number of installs and subtract the number of disconnects.
*The following statement in my form footer gives me a -1 even though there are 2 installs under MHTL and 1 disconnect under MHTLCM. Theoretically I would expect my total to be 1 (2 installs - 1 disconnect = 1).
=IIf([Service_Type]="Install",1,IIf([Service_Type]="Disconnect",-1,0))
That's my initial dilemma. The second one is, what if I want to only count the number of installs/disconnects for Account Group MHTLCM? I tried adding =IIf([Account_Group]="MHTLCM" AND [Service_Type]... in my statement, but obviously I don't have it set up correctly as it didn't work.
Thanks.
*I have two Account Groups: MHTL and MHTLCM
*I need to count the number of installs and subtract the number of disconnects.
*The following statement in my form footer gives me a -1 even though there are 2 installs under MHTL and 1 disconnect under MHTLCM. Theoretically I would expect my total to be 1 (2 installs - 1 disconnect = 1).
=IIf([Service_Type]="Install",1,IIf([Service_Type]="Disconnect",-1,0))
That's my initial dilemma. The second one is, what if I want to only count the number of installs/disconnects for Account Group MHTLCM? I tried adding =IIf([Account_Group]="MHTLCM" AND [Service_Type]... in my statement, but obviously I don't have it set up correctly as it didn't work.
Thanks.