Results 1 to 5 of 5

Thread: Zeros in Access field number

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2003
    Posts
    219

    Question Zeros in Access field number

    Any one know a way to format the MS Access field to have zeros in front of a number, let's say 1? I want to have a format like 00001 00002 00003 in the field number for ID. Whenever I put a zero in front of number, the zero disappeared. I want to put zeros in front of a number so when I truncate the texts from the ID number in my VB .NET application, it's easier for me to do it.

    Many thanks in advance!

    Chong

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083

    Re: Zeros in Access field number

    try changing data type of the ID Field to text !

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Feb 2003
    Posts
    219

    Question

    Thanks for helping me out. So as far as formating the field as number, there is no option in Access?

    Again, thanks. I'll try as text if there is no other option.

    Chong

  4. #4
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Sure . you can't store like this value in the database unless you convert it into text . I can't see any problems here . you can easily convert it into interger when you need to or vice versa throgh one line of code

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Feb 2003
    Posts
    219

    Thumbs up

    Thanks!

    Chong

Posting Permissions

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



Click Here to Expand Forum to Full Width