My Assistant
![]() ![]() |
|
|
Sep 24 2011, 07:43 PM
Post
#1
|
|
|
New Member Posts: 6 |
i have a table with this fields
FIELD TYPE (description) sale currency (sometimes could be 0) cash currency (sometimes could be 0) Creditcard currency adminfees currency downpayment currency and i want to add a calculated field called pending which would be adminfees+downpayment-cash-creditcard but when i try to write the formula i wrote it like this iif(adminfees+downpayment-cash-creditcard<=0,0,adminfees+downpayment-cash-creditcard) i get the error the field could not be saved because its result is null or binary its not supported by the server i would greatly appreciate if anyone could help |
|
|
|
Sep 24 2011, 08:25 PM
Post
#2
|
|
|
Access Wiki and Forums Moderator Posts: 48,113 From: SoCal, USA |
Hi,
(IMG:style_emoticons/default/welcome2UA.gif) I am guessing you are using Access 2010. Although I have not tried creating a calculated field before, I suspect that you could try removing the IIf statement and perhaps just play with the Format property to see if you can force negative numbers to display as a 0. Just my 2 cents... |
|
|
|
Sep 24 2011, 10:47 PM
Post
#3
|
|
|
New Member Posts: 6 |
i have no idea on hot to do what you requested
|
|
|
|
Sep 25 2011, 12:54 PM
Post
#4
|
|
|
Access Wiki and Forums Moderator Posts: 48,113 From: SoCal, USA |
Hi,
I was wondering if you could just use the expression: [adminfees]+[downpayment]-[cash]-[creditcard] And then this in the Format property: ;0 Just a thought... |
|
|
|
![]() ![]() |
|
Go to Top · Lo-Fi Version | Time is now: 25th May 2013 - 12:06 PM |