Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Master Detail Form Loop

Status
Not open for further replies.

mrkamran

Programmer
Jan 1, 2003
21
0
0
PK
Hello,
I have a master detail form and in detail block i want generate a loop from first record to last record of detail block. I want to check that an code is already in previous records of detail form. So i want to make a loop which check a field with given value in every row where it will find that value it will give me duplication error.
Thanks!
 
Something like this:-

declare
x number;
begin
go_block('your_block_name')
last_record;
x:= :system.cursor_record;

for i in 1 .. x
loop

/* your stuff goes in here */



end loop;
end;
 
Hmmm, probably need a first_record statement there too
before the start of the loop
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top