Results 1 to 7 of 7
  1. #1
    zhshqzyc is offline Novice
    Windows XP Access 2007
    Join Date
    Jan 2011
    Posts
    9

    Change field format

    Hi,


    I have a field which contains money 123.456789
    I want to display it as 123.45
    HOW? Thanks!

  2. #2
    SteveF is offline Generally AccessAble
    Windows XP Access 2010 (version 14.0)
    Join Date
    Nov 2010
    Location
    Fourth Corner
    Posts
    123
    Where do you want to display this? On a form or report, use the Format property of the text box that displays the data.

    In a query for export, use the Format Function.

    Steve

  3. #3
    zhshqzyc is offline Novice
    Windows XP Access 2007
    Join Date
    Jan 2011
    Posts
    9
    Just in the table.

  4. #4
    SteveF is offline Generally AccessAble
    Windows XP Access 2010 (version 14.0)
    Join Date
    Nov 2010
    Location
    Fourth Corner
    Posts
    123
    Leave it like it is in the table. In my professional opinion, all interfacing with data should be done via forms; leave the tables alone to do what they do: store data.

  5. #5
    Dinzdale40 is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2010
    Posts
    12
    Open the table and go to design view. Select the field and choose currency in the format field of the field properties section.

  6. #6
    zhshqzyc is offline Novice
    Windows XP Access 2007
    Join Date
    Jan 2011
    Posts
    9
    Sorry for my fault.
    It is in Queries.

  7. #7
    SteveF is offline Generally AccessAble
    Windows XP Access 2010 (version 14.0)
    Join Date
    Nov 2010
    Location
    Fourth Corner
    Posts
    123
    Quote Originally Posted by zhshqzyc View Post
    Sorry for my fault.
    It is in Queries.
    What purpose do the queries serve?

    If they feed data to forms & reports, do the formatting in the form/report. If they're being exported, or used as a data source by some other program (mail-merge comes to mind), then do the formatting in the query using the Format Function:

    FormattedFieldName: Format([FieldName], "$###,##0.00")

    Replace those two field names with what they really need to be. Be aware that the Format Function translates numeric values into text/string values, so you can't use the formatted columns in calculations.

    Steve

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

Similar Threads

  1. Format a field(AlphaNumeric)
    By Bakar in forum Database Design
    Replies: 1
    Last Post: 12-20-2010, 06:36 AM
  2. Can i change the format of DATE () ?
    By Nokia N93 in forum Access
    Replies: 2
    Last Post: 11-27-2010, 01:34 PM
  3. Need help with Memo field text format
    By sprovoyeur in forum Access
    Replies: 1
    Last Post: 05-14-2010, 08:03 AM
  4. Field switching from Number format to Text
    By COforlife in forum Queries
    Replies: 1
    Last Post: 11-10-2009, 03:23 PM
  5. Format options in combined Form field
    By perry in forum Forms
    Replies: 0
    Last Post: 03-06-2009, 04:53 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