to save last record and exit loop [message #224648] |
Wed, 14 March 2007 22:56 |
aries73
Messages: 4 Registered: March 2007
|
Junior Member |
|
|
i have a table abc_report and based on this i have created a form with database block abc_report. Heare all items except one (chk) is database items of table abc_report.
When i write fllowing coding in when button pressed last record does not saved.
pl. help.
BEGIN
GO_BLOCK('abc_REPORT');
FIRST_RECORD;
loop
if ((:abc_report.CHK='Y') OR (:abc_report.CHK='y')) then
UPDATE abc_REPORT
SET abc_DATE=sysdate
WHERE emno = :abc_REPORT.emno
AND (:abc_REPORT.CHK='Y' OR :abc_REPORT.CHK='y') ;
NEXT_RECORD;
else
next_record;
end if;
exit when (:system.last_record='TRUE');
end loop;
COMMIT;
END;
|
|
|
|
|