The total of multiplication error

Try it like this:
Code:
=[LineTotal]+(CLng([LineTotal]*[SalesTaxRate]*100/100))+[FreightCharge]
 
Or with the idea of Arnel's previous fix:
Code:
=[LineTotal]+(CLng([LineTotal])*CLng([SalesTaxRate])*100)/100+[FreightCharge]
 
Code:
[LineTotal]+(CLng([LineTotal])*CLng([SalesTaxRate])*100/100)+[FreightCharge]

putting the above on a query does not produce any errors.
 
I don't know that I have EVER seen a "too many ()" error, but as long as they are properly balanced, you can have a LOT of nested parentheses. In SQL queries, if you use the grid-based query designer, you automatically get what I think of as "too many parentheses" but SQL still takes it. In VBA expressions, I've used several layers of parentheses as well.

Can you make a screenshot of the error you are actually getting?
 
This is the error
 

Attachments

  • 20240703_120707.jpg
    20240703_120707.jpg
    3.3 MB · Views: 24

Users who are viewing this thread

Back
Top Bottom