Results 1 to 3 of 3
  1. #1
    3 Star Lounger
    Join Date
    Apr 2003
    Location
    Calgary, Alberta
    Posts
    327
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Have caluclation = 0 (Access 2000)

    I have a textbox that is calulation of 4 columns of a query. If that result is less then 0, how can I get it to display zero instead of a negative number if a negative number should appear? The controlsource of the textbox is something like this:
    =Round(A+B-C), 2)

    Thanks

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Have caluclation = 0 (Access 2000)

    =IIf(Round(A+B-C), 2)<0,0,Round(A+B-C), 2))

  3. #3
    3 Star Lounger
    Join Date
    Apr 2003
    Location
    Calgary, Alberta
    Posts
    327
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Have caluclation = 0 (Access 2000)

    Yeah I found it just a few mins ago [img]/forums/images/smilies/smile.gif[/img],
    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
  •