Simple calculation on click

setis

Registered User.
Local time
Today, 05:55
Joined
Sep 30, 2017
Messages
127
I am trying to make a simple calculation on VBA and I am missing something.

I need on my form that when I click a button it calculates the 15% of a field and place the result on another one. I created a button with this code:

Private Sub Command543_Click()
Me.QuoteApproved= Me.TransportAmount*0,15
End Sub

Could somebody let me know what am I missing?

Thanks!
 
Unless your regional settings are wrong, shouldn't it be
*0.15 ?

Are you getting an error, if so what?
 
Unless your regional settings are wrong, shouldn't it be
*0.15 ?

Are you getting an error, if so what?


It was that! Thanks!
 

Users who are viewing this thread

Back
Top Bottom