Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. RDLC expression error

RDLC expression error

Scheduled Pinned Locked Moved .NET (Core and Framework)
visual-studiohelpquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • X Offline
    X Offline
    Xpnctoc
    wrote on last edited by
    #1

    I wasn't sure what message board I should post this on, since none of the CodeProject boards seem to allow for the VS reports. In my RDLC report, I'm trying to negate a decimal value when another field is null. I used this expression: =IIf(IsDBNull(Fields!dst_ledgeritem_fk.Value), -Fields!dispamount.Value, Fields!dispamount.Value) However, when the IsDBNull(...) evaluates to true, the cell on the published report shows "#Error". When it evaluates to false, the plain old "Fields!dispamount.Value" displays perfectly. I've tried several variations for the "True" part of the expression: -Fields!dispamount.Value 0.0 - Fields!dispamount.Value 0.0 - CDbl(-Fields!dispamount.Value) All of them turn up "#Error". What am I doing wrong? Is there a way to get more useful information out of the report than just the useless token "#Error"? Thanks in advance.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups