>> Check your datatype, format, and other display.
>>
[quoted text clipped - 10 lines]
> Thanks
> DS
Ok That worked I changed it to Single. But I need it to Display .5 not
0.5 Thanks
DS
>>> Check your datatype, format, and other display.
>>>
[quoted text clipped - 14 lines]
> 0.5 Thanks
> DS
Got it almost. I have this 1. 0r this .5, Is there any way to set the
format so that only if the number is less than 1 the decimal shows,
otherwise it would be just 1 not 1.
Thanks DS
Douglas J. Steele - 29 Dec 2005 13:18 GMT
Not using the Format property, nor the Format function.
If it's essential, you could write your own function along the lines of:
Function FormatNumber(ValueToFormat As Single) As String
Dim strFormatted As String
strFormatted = ValueToFormat
If ValueToFormat >= 1 Then
strFormatted = Replace(strFormatted, ".", "")
End If
FormatNumber = strFormatted
End Function

Signature
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
> Got it almost. I have this 1. 0r this .5, Is there any way to set the
> format so that only if the number is less than 1 the decimal shows,
> otherwise it would be just 1 not 1.