calculate items outside database [message #348005] |
Mon, 15 September 2008 06:49  |
maher534510
Messages: 25 Registered: September 2008 Location: jordan
|
Junior Member |
|
|
i have data block with table on a form
1- item of table is value of rent
2- item of table is parts of value
3- item of table is reminder
i was calculate the sum of first item ( value of rent)
and second item (parts of value)
this two items are database items but the third ( balance )
is not database item and in another block but at the same form
i want to enter the sum of 1 + 2 in 3
HOW ????????????
|
|
|
|
|
Re: calculate items outside database [message #348025 is a reply to message #348013] |
Mon, 15 September 2008 07:37   |
rajy_salim
Messages: 204 Registered: January 2008 Location: Beirut - Lebanon
|
Senior Member |
|
|
begin
:block_name1.3 := nvl(:block_name2.2,0) + nvl(:block_name2.1,0);
end;
Where:- block_name1 is the data block containing the item 3
- block_name2 is the data block containing 1 and 2
|
|
|
|