I have a problem with rounding.
I wish the field TxtCost to contain the rounded up result (2 Decimal Places) of Billable Hours * TxtRate. It appears correctly on the screen but it stores the unrounded figure in the table.
Here's my VBA code.
Private Sub Billable_Hours_AfterUpdate()
Me.TxtCost = Me![Billable Hours] * Me![TxtRate]
End Sub
I wish the field TxtCost to contain the rounded up result (2 Decimal Places) of Billable Hours * TxtRate. It appears correctly on the screen but it stores the unrounded figure in the table.
Here's my VBA code.
Private Sub Billable_Hours_AfterUpdate()
Me.TxtCost = Me![Billable Hours] * Me![TxtRate]
End Sub