Results 1 to 3 of 3
  1. #1
    Access_Novice is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Sep 2013
    Posts
    265

    Format numbers for a calculated field in a query?

    In design view if I right click a column and select properties, I can specify a number format under the format property. I can do this for a column with numbers.



    But in the case of a calculated field, I can't do this. In the format property box, the drop down menu doesn't have any choices listed. Why? How can I format the numbers in my query results for a calculated field?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    I never set format properties in tables and queries, only in textboxes on forms and reports.

    I will use Format() function in queries. However, this results in a string value and can cause unexpected results if the field constructed with Format() expression is used in other calcs.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,544
    Perhaps by using the Format() function. For syntax see: http://www.techonthenet.com/access/f...ric/format.php
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

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

Similar Threads

  1. Replies: 1
    Last Post: 08-25-2014, 01:23 PM
  2. Replies: 4
    Last Post: 03-20-2014, 03:52 PM
  3. Replies: 3
    Last Post: 02-13-2013, 10:15 AM
  4. Format numbers
    By gauja in forum Access
    Replies: 2
    Last Post: 05-10-2011, 12:00 PM
  5. Format decimal numbers with fixed width
    By Persist in forum Programming
    Replies: 5
    Last Post: 07-14-2010, 05:43 PM

Tags for this Thread

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