Feb 24, 2005 #1 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
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
Feb 24, 2005 #2 PHV MIS Nov 8, 2002 53,708 FR 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 Upvote 0 Downvote
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
Feb 24, 2005 #3 lupins46 MIS Feb 19, 2004 2,509 GB Me.lbloutputph.Caption = format(Me.Qty / Me.Hours,"#.00") Upvote 0 Downvote
Feb 25, 2005 Thread starter #4 ardagh IS-IT--Management Jun 15, 2004 22 IE That works fine Thank you Upvote 0 Downvote