Results 1 to 5 of 5
  1. #1
    GCLIFTON is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    May 2016
    Posts
    84

    Number formating


    I could figure out how to search this question online, need help

    I have a table in access with a field that has the number 002. How can I have that field only show 02. You know only pull the last 2 digit. I do not need all 3 just 02 aka last 2 digit

  2. #2
    jwhite is offline Competent Performer
    Windows 10 Access 2013 32bit
    Join Date
    Dec 2012
    Location
    North Carolina
    Posts
    349
    If the value is 002, sounds like the field is a Text Data Type, therefore: Format("002","0#")

    Replace "002" with your field name if in a query or variable name if in code.

  3. #3
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,932
    or use the right function

    right("002",2)

  4. #4
    GCLIFTON is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    May 2016
    Posts
    84
    Click image for larger version. 

Name:	02.JPG 
Views:	9 
Size:	14.3 KB 
ID:	29803Click image for larger version. 

Name:	03.JPG 
Views:	9 
Size:	83.1 KB 
ID:	29804Where do I place this

  5. #5
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Leave the table to show the data as it is, with no formatting or changes to the data. Formatting is for visual display only, so you would use it in queries, forms and reports.

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

Similar Threads

  1. String formating
    By Thompyt in forum Programming
    Replies: 6
    Last Post: 03-07-2017, 03:48 PM
  2. Time/Number formating
    By smc678 in forum Queries
    Replies: 7
    Last Post: 10-12-2013, 06:20 AM
  3. Formating a texbox
    By alextol in forum Forms
    Replies: 23
    Last Post: 10-01-2013, 11:50 AM
  4. Unbound Phone Number Not Formating
    By Huddle in forum Access
    Replies: 3
    Last Post: 02-13-2012, 05:10 PM
  5. Conditional formating!
    By karanvemuri in forum Access
    Replies: 3
    Last Post: 10-29-2011, 03:34 PM

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