Here's the SQL, you just need to change the table name (assuming you have a Yes/No field type rather than text that says 'yes' or 'no')...
-------------------
SELECT Transit, Sum(IIf([USRoaming]=True,120,100)) AS Charges
FROM tblExample
GROUP BY Transit;
-------------------
I'll just add that you might find it easier to modify your tables, so that instead of a 'US Roaming' field in the first table, you have a 'ChargeFrID'. You then have a Charges table that would have fields: ChargeID, Charge Amount, Charge Description. If it's a relational database, you can link the tables together on ChargeID(One) = ChargeFrID(Many). If it's not a relational database, you still have a valid link for query building.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.