Results 1 to 4 of 4
  1. #1
    aa_weber is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Posts
    2

    Question Leading Zeros in Access 2010

    so.. I have read that the number field doesn't show the leading zeros in 2007... does 2010 have a way to do that, or does it still have to be a text field in order to see them..?

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    You either need a text field or use the Format() function to display the numeric field:

    Format(FieldName, "00000")

    with the appropriate number of zeros.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    aa_weber is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Posts
    2
    Quote Originally Posted by pbaldy View Post
    You either need a text field or use the Format() function to display the numeric field:

    Format(FieldName, "00000")

    with the appropriate number of zeros.



    .... okay, so I tried what I thought you meant, and it didn't work... (probably my error and lack of understanding, though... {silly newbie}..) but I did get it figured out.

    In the field property "Format", I entered: 0-0000-0000-0

    for my ISBN - 10 numbers
    and

    000-0-0000-0000-0

    for my ISBN - 13 numbers

    both now show properly and I can still enter the numbers without having to add the dashes...



    .... you were a monumental help to this process, and I am certain I could not have figured it out without you!

    Thanks!

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    Glad you have it working, and welcome to the site!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Leading Zeros
    By dirtbiker1824 in forum Access
    Replies: 1
    Last Post: 03-14-2011, 02:16 PM
  2. Adding Leading Zeros
    By jo15765 in forum Access
    Replies: 13
    Last Post: 11-20-2010, 11:11 PM
  3. Chart report leading zeros
    By mulefeathers in forum Reports
    Replies: 9
    Last Post: 06-02-2010, 08:49 AM
  4. Replies: 6
    Last Post: 04-30-2010, 01:57 PM
  5. leading 'Zeros' in data
    By wasim_sono in forum Forms
    Replies: 3
    Last Post: 04-06-2009, 11:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums