Main Report Records

  • Thread starter Thread starter Scott
  • Start date Start date
S

Scott

I have a main report that has a subreport on it; I want
the main report to display *only* those records who have
a match in the child field on the subreport, is there any
way how to get it.?

Thanks


Scott
 
Sure thing
Create the Recordsource Query like this:
SELECT .... FROM MAINTABLE A WHERE EXISTS (SELECT 'X' FROM SUBTABLE B WHERE
B.LINKFIELD = A.MASTERFIELD)

HTH

Pieter
 

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

Back
Top