![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
hi , somebody help me with this little bit of calculation in access , am not able to work out . i have 4 fields on a form , its like this , TOTAL , AMOUNTPAID , CREDIT , DEBIT. now getting CREDIT by TOTAL - AMOUNTPAID is easy but incase the 2nd value is greater the CREDIT value is shown as negative , what i want is to have that value in debit field . seems easy but i just dont get it . thanx |
#3
| |||
| |||
|
|
hi , somebody help me with this little bit of calculation in access , am not able to work out . i have 4 fields on a form , its like this , TOTAL , AMOUNTPAID , CREDIT , DEBIT. now getting CREDIT by TOTAL - AMOUNTPAID is easy but incase the 2nd value is greater the CREDIT value is shown as negative , what i want is to have that value in debit field . seems easy but i just dont get it . thanx |
#4
| |||
| |||
|
|
How about: Credit : IIF(([Total]-[AmountPaid])>0,[Total]-[AmountPaid], Null) Debit : IIF(([Total]-[AmountPaid])<0,[Total]-[AmountPaid], Null) -- / Sean the Mc / "I have not failed. I've just found 10,000 ways that won't work." - Thomas Alva Edison (1847-1931) "Lancer" <neur0lancer (AT) hotmail (DOT) com> wrote in message news:6cc5e68a.0310270021.1b8268db (AT) posting (DOT) google.com... hi , somebody help me with this little bit of calculation in access , am not able to work out . i have 4 fields on a form , its like this , TOTAL , AMOUNTPAID , CREDIT , DEBIT. now getting CREDIT by TOTAL - AMOUNTPAID is easy but incase the 2nd value is greater the CREDIT value is shown as negative , what i want is to have that value in debit field . seems easy but i just dont get it . thanx |
![]() |
| Thread Tools | |
| Display Modes | |
| |