Solved

text field type vs. numeric field type

Posted on 1998-08-05
3
185 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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

762 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now