Results 1 to 2 of 2
  1. #1
    sergran is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Jun 2013
    Posts
    115

    Numeri con 000

    Hello everybody, I've imported from Excell a database containing numbers anteceduti from the "0" (0001 .. 0002 etc etc) but when I go to copy the column in a table in a text field, I copied only the digit after the "0".
    How can I do to add the "0" so that the total of the digits is always 4?


    thanks

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    If you view the table that you first imported the value into, does it contain 4 characters?
    If so, and it it being lost when copying, how exactly are you copying that field over?
    Note that you can use the FORMAT function on numeric fields to insert leading zeroes, i.e.

    FORMAT([FieldName],"0000")

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

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