Home » Developer & Programmer » Forms » ... Help for Next_Record
... Help for Next_Record [message #122266] Sat, 04 June 2005 09:24 Go to next message
orcl_dba
Messages: 84
Registered: March 2005
Member
declare
total number(4):=0;
Begin
Hi i know this post contains a very basic level question but then again i would like expert to answer this so that many other junior people can get benefit for that ..


i want to calculate the total number of records in a data block..

i have a button and a text item..

i want that wheneever i press button the text box will show the total number of records that particular table ( data block) contains..

this is the code i m using but showing me error..

i checkd that if the cursor is on the last record.. then move it to first record and while its not last record add one number to total and in the end i display the total..

Hope to reveive early replies..


If (:system.last_record=True) Then
Move(:system.First_record);
while (system.last_record<>True)
Next_record;
total := total + 1;


End while;
:T3:= total;
end if ;







end;

Re: ... Help for Next_Record [message #122272 is a reply to message #122266] Sat, 04 June 2005 10:57 Go to previous message
Gurusubramanyam
Messages: 79
Registered: July 2001
Member
Hi,

You can use the COUNT_QUERY built-in. Please check form builder help.

Bye,
G.S
Previous Topic: scanning from oracle forms
Next Topic: Failed to publish the application WTG-03010: the application already exists
Goto Forum:
  


Current Time: Thu Sep 19 22:44:05 CDT 2024