+ Reply to Thread
Results 1 to 3 of 3

Negative Currency

Hybrid View

  1. #1
    David Adamson
    Guest

    Negative Currency

    Greetings all,

    I need to be able to make a series of labels in a user form to display a -ve
    currency value in Red

    For non -ve value I have no problem
    Results.Controls("AProfit" & i) = Format(a - c, "$#,##0")

    but I can't make it It trurn red with a -ve value

    Results.Controls("AProfit" & i) = Format(a - c, "$#,##0;-[Red]$#,##0")

    Any suggestions would be appreciated




  2. #2
    Tom Ogilvy
    Guest

    Re: Negative Currency

    Use the forecolor property of the label.

    --
    Regards,
    Tom Ogilvy

    "David Adamson" <d.adamson1@uq1.edu.au> wrote in message
    news:dd69l5$2bh1$1@bunyip2.cc.uq.edu.au...
    > Greetings all,
    >
    > I need to be able to make a series of labels in a user form to display

    a -ve
    > currency value in Red
    >
    > For non -ve value I have no problem
    > Results.Controls("AProfit" & i) = Format(a - c, "$#,##0")
    >
    > but I can't make it It trurn red with a -ve value
    >
    > Results.Controls("AProfit" & i) = Format(a - c, "$#,##0;-[Red]$#,##0")
    >
    > Any suggestions would be appreciated
    >
    >
    >




  3. #3
    David Adamson
    Guest

    Re: Negative Currency

    Thanks for that.




    "Tom Ogilvy" <twogilvy@msn.com> wrote in message
    news:u4YbzS7mFHA.3608@TK2MSFTNGP15.phx.gbl...
    > Use the forecolor property of the label.
    >
    > --
    > Regards,
    > Tom Ogilvy
    >
    > "David Adamson" <d.adamson1@uq1.edu.au> wrote in message
    > news:dd69l5$2bh1$1@bunyip2.cc.uq.edu.au...
    >> Greetings all,
    >>
    >> I need to be able to make a series of labels in a user form to display

    > a -ve
    >> currency value in Red
    >>
    >> For non -ve value I have no problem
    >> Results.Controls("AProfit" & i) = Format(a - c, "$#,##0")
    >>
    >> but I can't make it It trurn red with a -ve value
    >>
    >> Results.Controls("AProfit" & i) = Format(a - c, "$#,##0;-[Red]$#,##0")
    >>
    >> Any suggestions would be appreciated
    >>
    >>
    >>

    >
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1