Link to home
Start Free TrialLog in
Avatar of bill201
bill201

asked on

a problem in a sum function in vba access 2010

what it wrong in this method that i try to use in acces vba (to make a the round the total before tax to make that the toal with the tax (that is there 0.16 precent) will be a round number:
Private Sub RoundThePrice()
Dim d
d = sum(Forms!invoicet!invoicedetailst.Form!Total * 1.16 - Round(Forms!invoicet!invoicedetailst.Form!Total * 1.16, 0) / 1.16)

End Sub

but a get a compile error :
Sub or Function not defined
ASKER CERTIFIED SOLUTION
Avatar of Farzad Akbarnejad
Farzad Akbarnejad
Flag of Iran, Islamic Republic of image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial