pensive Posted May 26, 2005 Posted May 26, 2005 Hey everyone, first off. thank you. all your questions and answers have been a huge help in me getting my bearings on this program. you all are awesome... my question - i have a field for 'total height' in inches. and i just want to make a field that will convert it to X'Y for instance...... they input 68 into the inches field. and the next field will say 5'8 any advice would be greatly appreciated. thanks again.
aaa Posted May 26, 2005 Posted May 26, 2005 or instance...... they input 68 into the inches field. and the next field will say 5'8 Is not clear how 68 to 5'8. What formula you use?
Vaughan Posted May 26, 2005 Posted May 26, 2005 NumToText( Int( height / 12 ) ) & "'" & NumToText( Mod( height / 12 ) ) The NumToText() functions are probably a bit superfluous, but I like to be thorough. The "'" is a single quote surrounded by double quotes. " ' "
Lee Smith Posted May 26, 2005 Posted May 26, 2005 Hi Vaughan, I think you were misled by [color:"blue"]aaa version being 6, the original poster [color:"blue"]pensive is using v7. Your calculation was missing a comma behind the Height in the Mod Function NumToText( Int( Height / 12 ) ) & "' " & NumToText(Mod(Height[color:"red"], 12)) & """" For this to work for [color:"blue"]pensive I have modified it as follows: GetAsText( Int( Height / 12 ) ) & "' " & GetAsText(Mod(Height; 12)) & """ HTH Lee
pensive Posted May 26, 2005 Author Posted May 26, 2005 you guys are amazing. thank you all for the help. it worked perfectly. pensive...
pensive Posted May 27, 2005 Author Posted May 27, 2005 oh...so close. the only problem is it can't calculate a double digit for the second number. ex. 60" = 5'0" but if i put 71" = ? because it can't write 5'11 or 5'10", 6'11" etc.... please if its not too much problem, can you straighten me out? GetAsText( Int( height_in / 12 ) ) & "' " & GetAsText(Mod(height_in; 12)) & """ thanks again...
Recommended Posts
This topic is 7189 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now