I have a field where I store code and it may be
E800.0
E801
E8002
ONLY in the cases where it is E8002, I need to reformat it to be E800.2
In the same field I need to strip off leading zeros. Could I do something
like:
If field like 0* then
mid([field],2,10)
End if
The reason for using mid is that the length of the field varies, but is
never more than 10.
As to removing a trailing zero:
If Right([field],1) = "0" Then
[field] = Left([field], Len([field]) -1)
End If
--
Dave Hargis, Microsoft Access MVP