Dave,
There are a number of questions to consider here.
I assume the textbox on the form is bound to a field in your table? If
so, what is the data type of the field? It seems peculiar to me that
Access would interpret yur entry as a date unless the field is a
Date/Time data type. And I imagine Access would not allow you to enter
with a 'm' unless it is a Text data type. But in any case, you have to
consider whather you need the Distance to be regarded as a numerical
value. This would apply, for example, if you want to do calculations of
any sort, for example get total distances, or averages, or work out fuel
consumption, or some such. If so, then your Distance field should be
defined as a Number data type. And if it's a number data type, well, as
far as I know, you can't format the control to display as a fractional
format. You would either need to use a decimal entry, or else set up
two distance fields, one for the whole miles and the other for the
fractional portion. So if you always want to record the distance to the
nearest 1/16th of a mile, you would have a textbox for whole miles and
another for 16ths, so if the distance was 2¼ miles, you would enter 2 in
the miles box, and 4 in the 16ths box. But then, when you are doing
your calculations, you will need to use a formula to join these together
again, like this...
FullDistance: [DistanceMiles]+[Distance16ths]/16
and Access is still going to work it out as a decimal value.
So, in other words, it is not straightforward, and the way to proceed
will depend on your requirements.
--
Steve Schapel, Microsoft Access MVP
Hey,
Whats goin on. That pain in the neck truck driver again. Hope you have got
a long weekend and are enjoying it. If you can,when you get some time, maybe
you can help me with some number formatting. I am trying to speed up my
entries on the form again. I want to enter the distance say 1 and
1/16m(mile). The default setting is changing to the date format if I do not
use the m(mile). How do I change my settings to get the fractional style.
11/16. That will eliminate the need of entering the m each entry.