Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add or Substract with command buttons

Status
Not open for further replies.

mauricionava

Programmer
Jul 8, 2005
209
0
0
US
Hello, in my form there is a calculation where sometimes it does not matches with the other reference by one penny less or more and I think it's because of the rounding. If anyone knows how can I fix it, please help me.

In the meantime, I would like to create 2 command buttons that would add or substract pennies to the total amount field. One button with the + sign and the other with the - sign. What would be the coding for these two?

Thanks
 
fldNme = fldNme + 1...

if you set the datatype to be float, and have the decimal places set to more than 2, it should be clear wether it's a rounding problem or not.



--------------------
Procrastinate Now!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top