Set record Source in Sub Report

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

When (what event) is the appropriater time to set a record source for a sub
report.?

The Having clause of the select is based on the results of the query for the
main report.

Thanks

Lee
 
Lee said:
When (what event) is the appropriater time to set a record source for a sub
report.?

The Having clause of the select is based on the results of the query for the
main report.


Generally, the subreport should be filtered by using the
Link Master/Child properties.

To answer your question, the only place where you can set
a report's record source at runtime is in that report's Open
event. In the case of a subreport, it can only be done the
first time the subreport's Open event fires.

If you'll provide more details about what you are trying to
accomplish, maybe someone will be able to provide an
alterantive approach or at least a more specific answer.
 

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