Click to See Complete Forum and Search --> : currency


Chris B.
October 11th, 1999, 08:33 AM
OK, I want to enter a number and then use that number to get another number.I have been trying to format both of these numbers as currency, but I am doing something wrong.When I enter the first number I need a "$" in the text box, and when the second number is calculated I need a "$" in front of that.Also the numbers behind the decimal go back four places and I really only want them to go back to.Any ideas?

option Explicit

private Sub cmdCalculate_Click()
Dim GrossYearlySalary as Currency
Dim GrossMonthlySalary as Currency

GrossYearlySalary = Val(txtGrossYearlySalary.Text)
GrossMonthlySalary = GrossYearlySalary / 12
lblGrossMonthlySalary = GrossMonthlySalary

End Sub

private Sub cmdExit_Click()
End

End Sub

private Sub cmdprint_Click()
PrintForm

End Sub

private Sub mnuExit_Click()
End

End Sub