Calculate Profit margin and place in table as %

cookitup

Registered User.
Local time
Today, 15:07
Joined
Apr 4, 2012
Messages
33
I am trying to use the code below to determine profit margin, However, I want the sum to show as a percent in the table and Form. Please Help!

Me.Margin = (Me.Quote_Amount - Me.Cost) / Me.Cost / 100

This is returning a "0" in the field
 
What is the data type/length of Margin in the table?
 
Number/Long Integer
 
Along those lines:

Make the "Field Size" for your field "Double", change the "Format" for the field in your table and form to "Percent", then change the "Decimal Places" in the table and form to your desired number of decimal places.
 
Greg, That worked perfectly, However, it is readin 0.25%...is there a way I could have it read just 25%???
 
Never mind Greg, I figured out my problem.!!! thanks again
 

Users who are viewing this thread

Back
Top Bottom