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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

limit decimal places

Status
Not open for further replies.

ardagh

IS-IT--Management
Jun 15, 2004
22
IE
I have the following code to calculate output per hour. It works but how can I limit the result to two decimal places.


Private Sub Hours_AfterUpdate()

Me.lbloutputph.Caption = Me.Qty / Me.Hours
End Sub



Thanks
 
Me.lbloutputph.Caption = Format(Me.Qty / Me.Hours, "#.##)

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top