Please Help,
I need to store feet and inches as “NUMBERS” not “TEXT” in a table because I need to add, subtract, and/or muliply certain measurements, Access2K will not let me do it. Any help would be greatly appreciated. THANX.
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
HELP – How do I use Feet and Inches in my table
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » HELP – How do I use Feet and Inches in my table
- This topic has 13 replies, 5 voices, and was last updated 24 years, 1 month ago.
AuthorTopicCoolGuy
GuestMarch 30, 2001 at 6:15 pm #1768864Viewing 4 reply threadsAuthorReplies-
WSAndyAinscow
AskWoody Lounger -
H. Legare Coleman
AskWoody PlusMarch 30, 2001 at 7:45 pm #1781094If you are going to have to do arithmetic with the feet & inches, then you are probably going to have to store either inches or feet and decimal part of a foot in a data base field. Then when you display the value you will have to convert it back to feet and inches and either convert it to text formatted the way you want or displayed in to controls.
-
CoolGuy
GuestMarch 30, 2001 at 8:27 pm #1781097Thanks GUYS, but what I need is a little more involved, here is exactly what I need :
Users need to type in measurements as shown:
5/8″ or 3/4″ or 7/8″ or even 2′-3 5/8″and since there are THOUSANDS of records ,each dimension different, it would be tedious to get him to convert all of those inches to decimal, I have to find a way to let him input it in foot and inch format and then take those values and run some math equations on them (so they have to stay numeric) I can convert them to decimal after he has typed them in, does anyone know how to take a text value of 1-3/8″ and convert it to numeric decimal then I can manipulate it however I see fit and then convert it back to feet and inches.
Any more ideas?
-
H. Legare Coleman
AskWoody Plus -
H. Legare Coleman
AskWoody Plus
-
-
WSPeterNRoth
AskWoody LoungerMarch 31, 2001 at 2:03 am #1781112
-
-
WSAndyAinscow
AskWoody LoungerApril 2, 2001 at 11:35 am #1781191Can you agree a standard entry format with the user?
eg. feet ‘space’ inches ‘space’ fraction (as n/m without spaces), the feet and inches being required.
If you could then you could write a simple parser to convert to a numeric value. Also if this was a way to go I would suggest you consider storing the original entry as text in the table and as the numeric value so you could track down inconsistancies.
-
H. Legare Coleman
AskWoody PlusApril 2, 2001 at 12:00 pm #1781193I think that storing the same value in two fields in the DB is a very bad idea, and is asking for future errors. Someone else may modify the system, and see the text field with the data in it and use it in a form or report. Then someone comes along and modifies one of the two fields in spreadsheet view, but not the other, then you have a difference in the displayed values and calculated values. If you want to keep it, then write it to a separate log file.
-
WSAndyAinscow
AskWoody LoungerApril 2, 2001 at 12:29 pm #1781194Generally it is not recommended at all to store the same piece of information in two fields. I would consider this as a special case in that the text entry is being parsed to provide a numeric value which is then used in calculations. I recommend storing the original entry so that it is what has been entered that is stored for cross checking if calculation based on the parsed value is incorrect. I don’t know what the further calculation involves. Storing of the numeric value is for use in these calculations, maybe it is not required to be static, maybe it could be dynamically calculated each time. Maybe the end result of the calculation is a candidate for storage.
One way to help stop a problem such as you describe could be to store this original text entry in a separate table, or give it the field a name such as ‘DO_NOT_USE__DimensionCrosscheckOnly’I don’t like using a separate log file – the likelyhood that someone might modify/delete it I think is greater than if it is in a table.
re Spreadsheet view do you let your users operate directly in your tables! That is asking for trouble. -
H. Legare Coleman
AskWoody PlusApril 2, 2001 at 2:44 pm #1781198No, users are not allowed to use spreadsheet view. However, support people frequently use spreadsheet view when solving problems, and if that person is not the one that wrote the original, or even if it is and it has been a long time, one field could get changed and not the other.
Who do you allow access to your log files that might delete them? I prefer the log file since it would keep a running record of all changes instead of just the last change that would normally be kept in the DB. I also prefer keeping this kind of stuff out of the DB where it can affect performance, particularly if there are a number of such fields.
-
WSAndyAinscow
AskWoody LoungerApril 2, 2001 at 6:24 pm #1781204Separate logging file or field/table/database. Another person, not the original developer, can make changes by accident or design. It’s a matter of how one uses and creates the logging information. Someone has to access the information and manipulate it else why bother generating it.
As with everything there are various ways to achieve ones goals and quite often no obvious ‘best’ way as long the end result is achieved. What is ‘best’ for one situation is ‘wrong’ for another as the conditions and requirements vary from instance to instance.The point I was trying to make is that IF the method of having a standard entry format and a DIY parser was chosen THEN it should be considered storing the users original entry. The example I gave was for cross checking if the parsing routine failed under certain circumstances. There could be other reasons for keeping the original entry. For example. Import into another country requires the documentation and packging description to match exactly, similarly for insurance of goods. Another is for stock-taking when comparing 24.375 on a printout with 2 Feet 3/8 inch on the box. I have no doubt you could think of other theoretical examples yourself.
-
-
-
-
-
WSRupert
AskWoody LoungerApril 3, 2001 at 4:16 am #1781254To answer this question correctly more info is required.
The correct way of adding these together will depend on the accuracy required. The first question is what tolerances are allowed? For example if you convert a third (1/3) in to a decimal you get 0.333 recurring. If you now add three
-
WSRupert
AskWoody Lounger
-
Viewing 4 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
InfoStealer Malware Data Breach Exposed 184 Million Logins and Passwords
by
Alex5723
13 minutes ago -
How well does your browser block trackers?
by
n0ads
4 hours, 1 minute ago -
You can’t handle me
by
Susan Bradley
18 minutes ago -
Chrome Can Now Change Your Weak Passwords for You
by
Alex5723
2 hours, 35 minutes ago -
Microsoft: Over 394,000 Windows PCs infected by Lumma malware, affects Chrome..
by
Alex5723
11 hours, 35 minutes ago -
Signal vs Microsoft’s Recall ; By Default, Signal Doesn’t Recall
by
Alex5723
18 minutes ago -
Internet Archive : This is where all of The Internet is stored
by
Alex5723
11 hours, 59 minutes ago -
iPhone 7 Plus and the iPhone 8 on Vantage list
by
Alex5723
12 hours, 4 minutes ago -
Lumma malware takedown
by
EyesOnWindows
20 minutes ago -
“kill switches” found in Chinese made power inverters
by
Alex5723
20 hours, 52 minutes ago -
Windows 11 – InControl vs pausing Windows updates
by
Kathy Stevens
20 hours, 46 minutes ago -
Meet Gemini in Chrome
by
Alex5723
1 day ago -
DuckDuckGo’s Duck.ai added GPT-4o mini
by
Alex5723
1 day, 1 hour ago -
Trump signs Take It Down Act
by
Alex5723
1 day, 8 hours ago -
Do you have a maintenance window?
by
Susan Bradley
1 hour, 52 minutes ago -
Freshly discovered bug in OpenPGP.js undermines whole point of encrypted comms
by
Nibbled To Death By Ducks
11 hours, 11 minutes ago -
Cox Communications and Charter Communications to merge
by
not so anon
1 day, 12 hours ago -
Help with WD usb driver on Windows 11
by
Tex265
1 hour, 10 minutes ago -
hibernate activation
by
e_belmont
1 day, 21 hours ago -
Red Hat Enterprise Linux 10 with AI assistant
by
Alex5723
2 days, 1 hour ago -
Windows 11 Insider Preview build 26200.5603 released to DEV
by
joep517
2 days, 4 hours ago -
Windows 11 Insider Preview build 26120.4151 (24H2) released to BETA
by
joep517
2 days, 4 hours ago -
Fixing Windows 24H2 failed KB5058411 install
by
Alex5723
1 day ago -
Out of band for Windows 10
by
Susan Bradley
2 days, 8 hours ago -
Giving UniGetUi a test run.
by
RetiredGeek
2 days, 15 hours ago -
Windows 11 Insider Preview Build 26100.4188 (24H2) released to Release Preview
by
joep517
2 days, 23 hours ago -
Microsoft is now putting quantum encryption in Windows builds
by
Alex5723
19 hours, 12 minutes ago -
Auto Time Zone Adjustment
by
wadeer
3 days, 3 hours ago -
To download Win 11 Pro 23H2 ISO.
by
Eddieloh
3 days, 1 hour ago -
Manage your browsing experience with Edge
by
Mary Branscombe
1 hour, 28 minutes ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.