Need Help Report and Subreport

M

March

Hello All,

I try to figure out a report footer.

For example, I have
1. a textbox to display sum(amount) in (main)report as subTotal.
2. another textbox to display sum(amount) in subreport as another subTotal.
[I get the sum(amount) from Table, using "insert into tb ( ) select
sum(amount) from tempTb;" ---> This can be zero. ]
3. another textbox to display sum(1+2) in (main)report as grandTotal.

My problem is if 2. is zero, in 3. displays "#Error". I would like to insert
0 [zero] in 2., if the tb is empty.

Please give me suggestion. I might be wrong to do this way.

Thanks,
March
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top