G
Guest
I previously used the following to sum query selections from option groups that were converted from numbers to text and it worked fine.
Now that I have reset the option groups to work as they are designed to(numbers), I get a data type mismatch in criteria expression for calculated text boxes. Type of Service Option Group selections are either Physical or Phone.
=Sum(IIf([Type of Service]="Physical",1,0)) worked for the text conversion.
After putting option group back to as designed I tried
=Sum(IIf([Type of Service]="1",1,0)) as Physical is "1" and Phone is "2". I still get the mismatch problem.
How do I write the expression to sum correctly?
Now that I have reset the option groups to work as they are designed to(numbers), I get a data type mismatch in criteria expression for calculated text boxes. Type of Service Option Group selections are either Physical or Phone.
=Sum(IIf([Type of Service]="Physical",1,0)) worked for the text conversion.
After putting option group back to as designed I tried
=Sum(IIf([Type of Service]="1",1,0)) as Physical is "1" and Phone is "2". I still get the mismatch problem.
How do I write the expression to sum correctly?