Results 1 to 4 of 4
  1. #1
    New Lounger
    Join Date
    Jul 2017
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to save larger number in in ms access

    i use ms.access for my database. i save data Barcode in the table and the field type is long integer. But i get error from ms.access when i input the barcode data. i think the problem is because barcode data is up to 10 digits.

    i think long integer type can't input up to 10 digits number. what should i do?

  2. #2
    WS Lounge VIP access-mdb's Avatar
    Join Date
    Dec 2009
    Location
    Oxfordshire, UK
    Posts
    1,997
    Thanks
    163
    Thanked 189 Times in 182 Posts
    What are you using the field for? If it's just storing the number as text, then I would suggest making it a text field. I don't know what you would do if you are hoping to use it in a formula (i.e. actually as a number)
    Just because you can doesn't mean you should.

  3. #3
    WS Lounge VIP access-mdb's Avatar
    Join Date
    Dec 2009
    Location
    Oxfordshire, UK
    Posts
    1,997
    Thanks
    163
    Thanked 189 Times in 182 Posts
    Sorry, lack of manners - welcome to the Lounge as a new user
    Just because you can doesn't mean you should.

  4. #4
    Gold Lounger
    Join Date
    Jun 2001
    Location
    Crystal Beach, FL, Florida, USA
    Posts
    3,464
    Thanks
    1
    Thanked 39 Times in 38 Posts
    As "access" asked, is it really necessary that this be stored as a numeric field? If it is really necessary, you might consider changing the format to Currency. That gives you 15 positions to left of decimal. You can format it any way you want, so it doesn't have to be presented as currency.
    Mark Liquorman
    See my website for Tips & Downloads and for my Liquorman Utilities.

  5. The Following User Says Thank You to MarkLiquorman For This Useful Post:

    access-mdb (2017-07-08)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •