Simple calculation on click (1 Viewer)

setis

Registered User.
Local time
Yesterday, 22:34
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!
 

Minty

AWF VIP
Local time
Today, 06:34
Joined
Jul 26, 2013
Messages
10,381
Unless your regional settings are wrong, shouldn't it be
*0.15 ?

Are you getting an error, if so what?
 

setis

Registered User.
Local time
Yesterday, 22:34
Joined
Sep 30, 2017
Messages
127
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

Top Bottom