Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

text field type vs. numeric field type

Posted on 1998-08-05
3
Medium Priority
?
239 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
tuvi earned 40 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

715 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