I am using CR 8.5 on an Oracle 8i database. I have a main report which gives me all of the values that I need except for one which is the "Available Credit". I have determined that I need to use 2 subreports and find the difference between these to derive the "Available Credit". Also, one of the subreports consists of a subquery. The first subreport is named "Unpaid Invoice Fees". The second is named "Unbilled Permit Fees". "Available Credit" = sum("Unpaid Invoice Fees") - sum("Unbilled Permit Fees").
I'm not sure of how to derive the values of the two subreports to subtract them. Also the sql statement for "Unbilled Permit Fees" consists of a subquery.
Eg: select *
from contrctr, liccntct, aptrans
where contrctr.contid = liccntct.contid
and liccntct.lic = 'BONDED'
and liccntct.inactvflag = 'N'
and contrctr.contid = aptrans.contid
and contrctr.escrowno = aptrans.escrowno
and aptrans.trncat = 'E'
and aptrans.trntype = 'P'
and aptrans.stat = 'P'
and aptrans.trnno not in (select varbillpay.trnno
from varbillpay)
I'm not sure of how to deal with a subquery in a subreport. If anyone could offer me some advice on these 2 issues I would greatly appreciate it.
I'm not sure of how to derive the values of the two subreports to subtract them. Also the sql statement for "Unbilled Permit Fees" consists of a subquery.
Eg: select *
from contrctr, liccntct, aptrans
where contrctr.contid = liccntct.contid
and liccntct.lic = 'BONDED'
and liccntct.inactvflag = 'N'
and contrctr.contid = aptrans.contid
and contrctr.escrowno = aptrans.escrowno
and aptrans.trncat = 'E'
and aptrans.trntype = 'P'
and aptrans.stat = 'P'
and aptrans.trnno not in (select varbillpay.trnno
from varbillpay)
I'm not sure of how to deal with a subquery in a subreport. If anyone could offer me some advice on these 2 issues I would greatly appreciate it.