Results 1 to 3 of 3
  1. #1
    edmscan is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2014
    Posts
    168

    How to ensure trailing zero's in query results ?

    I have a query that returns results .. and the results are fine, but the format I cannot figure out.

    I want it to show .. 3.20 or 3.00, with 2 decimal places including showing the trailing zeros. I am getting 3.2 and not what I want.

    Format in the table is "Fixed" .. and Precision 5, Scale 2 and Decimal 2. Field size is decimal.

    Any advice appreciated ?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    I don't concern myself with decimal places in tables and queries. I set the Format and Decimal Places properties of controls on form/report.

    However, with query in design view, select field in grid, look at the Properties Sheet. Try setting the Format and Decimal Places properties there.
    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
    edmscan is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2014
    Posts
    168
    Quote Originally Posted by June7 View Post
    I don't concern myself with decimal places in tables and queries. I set the Format and Decimal Places properties of controls on form/report.

    However, with query in design view, select field in grid, look at the Properties Sheet. Try setting the Format and Decimal Places properties there.
    That .. worked. Thank you.
    I never knew of that option. I tried it .. and for some reason it was not working but it was cause it was not saving. But .. it is fine now.

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

Similar Threads

  1. Replies: 3
    Last Post: 01-12-2014, 02:34 AM
  2. Replies: 7
    Last Post: 08-26-2013, 06:05 AM
  3. Ensure the form I'm on is last record
    By zippy483 in forum Programming
    Replies: 1
    Last Post: 11-23-2011, 05:08 AM
  4. Removing Trailing Numbers
    By swagger18 in forum Programming
    Replies: 3
    Last Post: 01-28-2011, 02:39 AM
  5. Trailing Spaces workaround
    By shexe in forum Queries
    Replies: 23
    Last Post: 09-21-2010, 04:28 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