One more question... is there a way to add an identifier to the number
such
as ' for feet or " for inches?
Brook
:
To get inches, try something like
Inches: ([Measurement]-Int([Measurement]))*12
--
Duane Hookom
MS Access MVP
Jeff,
Thanks for the tip. One thing I'm not sure of is how to split out
the
integer in order to just have the decimal so that I can divide the
decimal
by
12.
Thanks brook
:
Brook
I'm not aware of any built-in function that does that, but you
could
easily
"do the math" in your query, or in a user-defined function. From
your
description, the "integer" portion of your number is the number of
feet.
You can use the "integer divide" ("\") to get the whole number
portion
of,
say, "4.33".
If you subtract the integer divide answer (4) from your original
value
(4.33), you are left with a decimal number that, from your
description,
sounds like the portion of 12 inches. If you multiply that decimal
"fraction" times 12, you'll get the number of inches.
WARNING: the value you gave as a first example (4.33) is not
exact.
If
you
carry out the above operations, you'll end up with 4 feet, 3.99
inches.
You
may also need to "round" your inches...
--
Good luck
Jeff Boyce
<Access MVP>
i work for a manufacturing company, our procduction facility uses
the
following format for their mesurements: I .E . 4.33 , 4.5 ....
etc...
however, I would like to have it in actuall inches... I.E. 4.33 =
4
ft
4
inches or 4 feet 6 inches. Is there a way to do this in a query
formula?
Thanks,
Brook