Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Database Design / January 2005

Tip: Looking for answers? Try searching our database.

storing 16 digit number

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
WB - 21 Jan 2005 22:42 GMT
any suggestions on how to create a field to store a 16 digit number (gift
Card number).  I don't believe I can use a data type as a number since the
card number is so long.  Your input is appreciated.

wb
Douglas J. Steele - 21 Jan 2005 23:03 GMT
Use text. Since it's unlikely you're going to do arithmetic on it, there's
no reason to store it as a number. If you're going to be putting in logic to
check that it's a proper card number, you're probably going to be adding
together particular digits and the such, and the Mid function is what you'll
need for that.

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

> any suggestions on how to create a field to store a 16 digit number (gift
> Card number).  I don't believe I can use a data type as a number since the
> card number is so long.  Your input is appreciated.
>
> wb
John Vinson - 21 Jan 2005 23:47 GMT
>any suggestions on how to create a field to store a 16 digit number (gift
>Card number).  I don't believe I can use a data type as a number since the
>card number is so long.  Your input is appreciated.
>
>wb

You're correct. You'll never be doing math with this "number" anyway,
so a Number datatype is inappropriate anyway!

Simply use a Text field; if you wish, use an Input Mask of

0000000000000000

to force entry of exactly 16 numeric characters.

                 John W. Vinson[MVP]    
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.