Results 1 to 4 of 4

Thread: Keep trailing zero in ms access for generating reports

  1. #1
    Join Date
    Jan 2009
    Posts
    202

    Keep trailing zero in ms access for generating reports

    Hi, I am working with ma access and i have a numeric field in which there are decimal digits for only few data. Say 1 out of 10 times but i don't wont to show .00 when the number is integer. I just want to show the numbers with decimal points like 5.02 with decimal digits as it may become important. Please help. How do i achieve this?

  2. #2
    Join Date
    May 2008
    Posts
    4,570

    Re: Keep trailing zero in ms access for generating reports

    Quote Originally Posted by Noverism View Post
    i don't wont to show .00 when the number is integer. I just want to show the numbers with decimal points like 5.02 with decimal digits
    Well i'm not too much sure but you can set the format property to
    Code:
    0.##
    The result for the integer suppose five will be "5." and the decimal number will be "5.12" or "5.04"

  3. #3
    Join Date
    Jan 2009
    Posts
    202

    Re: Keep trailing zero in ms access for generating reports

    What would happen if i use control source expression to get the desired output :

    =Iff(thefield = Int(thefield), Format(thefield,"0"),
    Format(thefield, "0.00")

    or may be this :

    =Iff(thefield = Int(thefield), Format(thefield,"0"),
    Format(thefield, "0.0#")

  4. #4
    Join Date
    Jan 2009
    Posts
    710

    Re: Keep trailing zero in ms access for generating reports

    Quote Originally Posted by Noverism View Post

    =Iff(thefield = Int(thefield), Format(thefield,"0"),
    Format(thefield, "0.00")

    or may be this :

    =Iff(thefield = Int(thefield), Format(thefield,"0"),
    Format(thefield, "0.0#")
    This will not work... This is a typo i guess its IIF else everything is fine!

Similar Threads

  1. Reports not generating in sbs 2008
    By SinguIar in forum Small Business Server
    Replies: 5
    Last Post: 30-07-2011, 12:49 AM
  2. Dell 2335dn printer generating automatic reports
    By Jezriah in forum Portable Devices
    Replies: 4
    Last Post: 07-12-2010, 04:43 AM
  3. Samsung LN52B750 Image Trailing/Ghosting Issue
    By Amuda in forum Monitor & Video Cards
    Replies: 6
    Last Post: 06-05-2010, 09:54 AM
  4. Replies: 2
    Last Post: 22-05-2009, 01:42 PM
  5. How to generate reports with IReport / Jasper Reports
    By JPGargoyle in forum Software Development
    Replies: 3
    Last Post: 24-04-2009, 05:48 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,054,552.50547 seconds with 17 queries