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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to abort the report execution

Status
Not open for further replies.

SumithaTheivendran

Programmer
Feb 5, 2002
6
IN
Dear all,
I need to abort the report execution,if the query generating report returns no rows.I tried to do this using the report trigger 'before report'.I have written code like this
Function BEF_REP_TRG return boolean is
count_inv number;
begin
select count(*) into count_inv from invoices
where :p_invoices = invoiceno;
if count_inv = 0 then
srw.message (1009, 'No invoices')
return false;
end if;
return true;
end;
But ,it is displaying a dialog box saying rep-1825 Before Report trigger returned false .
If anyone knows ,why it happens like this means,pls let me know.
Thanks in advance
 
Hi Sumitha,

I have the same problem as you have.
Did you find a solution yet?

Thanks.[upsidedown]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top