Percent Discount Code

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Can anyone tell me why this doesn't work?

If RetailPurchase > 0 Then
HardwareDisc= (RetailPurchase - WhlslePurchase) / RetailPurchase
End If

I have it in a button control...when the button is pushed a bunch of
calculations happen...this one keeps returning 0.00%...which is wrong:

When the Retail is $100 and Whlsle is $75 is should return 25%.

I'm sure I just have the syntax wrong but can't seem to find out how.

I have it as >0 because I only want it to return a number if Retail is
entered.

Thanks in advance,
Gee
 
should work.....obviously the equation is ok...

something dimensioned wrong? is the definition of the data in the table as
numeric?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Percent Field 3
Decimals Places Rounding 2
discount on a form 1
TABLE HELP 2
2007 Percent field Issues 8
Access My Expression Contains Wrong number of arguments 0
Amazon Paid/Discounted Reviews 16
Formatting a query field 1

Back
Top