Number formatting in forms
Hi Brian
The following code is straight out of the excel vba help file, it
should give you a clear idea of how to do what you are after.
' User-defined formats.
MyStr = Format(5459.4, "##,##0.00") ' Returns "5,459.40".
MyStr = Format(334.9, "###0.00") ' Returns "334.90".
MyStr = Format(5, "0.00%") ' Returns "500.00%".
MyStr = Format("HELLO", "<") ' Returns "hello".
MyStr = Format("This is it", "") ' Returns "THIS IS IT".
I hope this helps you out
Steve
|