Results 1 to 6 of 6

Thread: [RESOLVED] CR 11... format a number in a formula field?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2001
    Location
    Mass USA
    Posts
    1,674

    Resolved [RESOLVED] CR 11... format a number in a formula field?

    hello,
    I have a number displaying from a formula field. The reason I put it in a formula field is because I needed to add a "-" before it. My problem is that the number displays "-5.00". I need to know how to get rid of the decimal fomatting in a formula field...

    Anyone have an idea?

  2. #2
    Lively Member
    Join Date
    Mar 2006
    Posts
    94

    Re: CR 11... format a number in a formula field?

    Quote Originally Posted by Besoup
    hello,
    I have a number displaying from a formula field. The reason I put it in a formula field is because I needed to add a "-" before it. My problem is that the number displays "-5.00". I need to know how to get rid of the decimal fomatting in a formula field...

    Anyone have an idea?
    I haven't used CR11 yet, but does it allow you to right-click the formula field on the form and then select format from the popup menu?

    If it does then choose format -> Numbers -> custom format and do whatever you please.

    HTH

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2001
    Location
    Mass USA
    Posts
    1,674

    Re: CR 11... format a number in a formula field?

    Quote Originally Posted by King_George
    I haven't used CR11 yet, but does it allow you to right-click the formula field on the form and then select format from the popup menu?

    If it does then choose format -> Numbers -> custom format and do whatever you please.

    HTH

    yeah you can right click and format field but there is not number formatting in the format box.

    die crystal! :P

  4. #4
    Addicted Member
    Join Date
    Jan 2001
    Location
    MPLS
    Posts
    187

    Re: CR 11... format a number in a formula field?

    I'm guessing in your formula was interpreted as a string now because you added the "-" in the formula by using a string concatenation like "-" & yournumber. You need to create a formula that retains being a number and then you can still format it. Try changing your formula to be -1 * yournumber (to get the negative in front) and then when this formula is placed on your report it is still considered numeric and can be formated to not display the decimals.

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2001
    Location
    Mass USA
    Posts
    1,674

    Re: CR 11... format a number in a formula field?

    Quote Originally Posted by ducky
    I'm guessing in your formula was interpreted as a string now because you added the "-" in the formula by using a string concatenation like "-" & yournumber. You need to create a formula that retains being a number and then you can still format it. Try changing your formula to be -1 * yournumber (to get the negative in front) and then when this formula is placed on your report it is still considered numeric and can be formated to not display the decimals.

    tried :

    -1*{PO_Header.PO_Header_Draw_Number}

    and still got the same result =/

  6. #6

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2001
    Location
    Mass USA
    Posts
    1,674

    Re: CR 11... format a number in a formula field?

    nvm, now I can format the field like it is numeric... thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width