Solved

text field type vs. numeric field type

Posted on 1998-08-05
3
216 Views
Last Modified: 2012-06-27
if i have a field that will have strictly numbers in it such as a serial number but i wont be performing any calculations on it, is there any advantage to makeing it a text field type vs. numeric field type?

if possible i would like to get an argument fo both sides of the issue
0
Comment
Question by:Bangerter
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
tuvi earned 10 total points
ID: 1958225
If you want to let Access do the validation, then use a numeric field. That way, Access will check for you.

But if you want to do your own validation, then it is better to use a text field and extract from it. You will have the advantage for range checking, say you limit it to less than 10000, you can check the text length if greater than 4, error. Not only that, user can enter 9999999999999999 and that way out of range for any data type.
0
 
LVL 2

Author Comment

by:Bangerter
ID: 1958226
is that all it comes down to, is validation? ive heard things like dont use a numeric field unless you are going to do calculations, because its faster for a printer to print from a text field then a numeric. but on the other hand a numeric field will take up less space. etc...
any comments in that respect? or is space and speed not that big of an issue anymore?
0
 
LVL 5

Expert Comment

by:tuvi
ID: 1958227
If your database is small to medium size, then "speed and space not that big issue anymore" considering the technology nowadays: anyboday can get a very speedy PC for a cheap price.

What I think it all comes down to, according to a programmer's perspective, is the ease of programming and hencetofore maintenance. You get it to work first with my above comments.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question