Solved

text field type vs. numeric field type

Posted on 1998-08-05
3
233 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 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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
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 how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

630 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