Report with a sub report

P

PJ

I have a report with a subreport. The main report will output clients with
information about that client. The subreport list all the bank involved with
that client. I want to be able to do the following:

If a bank called "ABC Bank" is in the list of a bank in the subreport only
those clients will output. The kicker is I also want subreport to list all
the other banks involved with that cleint.

Any suggestions?

Thanks in advance
 
D

Duane Hookom

The main report's record source would need to be filtered like:

SELECT *
FROM qYourQuery
WHERE ClientID IN (SELECT ClientID FROM tblClientBanks WHERE BankID ="ABC
BANK");

You could also use an JOIN which would probably be more efficient than the
subquery.
 

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