The total of multiplication error (1 Viewer)

cheekybuddha

AWF VIP
Local time
Today, 23:19
Joined
Jul 21, 2014
Messages
2,412
Try it like this:
Code:
=[LineTotal]+(CLng([LineTotal]*[SalesTaxRate]*100/100))+[FreightCharge]
 

cheekybuddha

AWF VIP
Local time
Today, 23:19
Joined
Jul 21, 2014
Messages
2,412
Or with the idea of Arnel's previous fix:
Code:
=[LineTotal]+(CLng([LineTotal])*CLng([SalesTaxRate])*100)/100+[FreightCharge]
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 06:19
Joined
May 7, 2009
Messages
19,304
Code:
[LineTotal]+(CLng([LineTotal])*CLng([SalesTaxRate])*100/100)+[FreightCharge]

putting the above on a query does not produce any errors.
 

The_Doc_Man

Immoderate Moderator
Staff member
Local time
Today, 17:19
Joined
Feb 28, 2001
Messages
27,695
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?
 

7anthala

Registered User.
Local time
Tomorrow, 01:19
Joined
Apr 7, 2014
Messages
41
This is the error
 

Attachments

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

Users who are viewing this thread

Top Bottom