Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Subreport loses link after setting DataSource

Status
Not open for further replies.

Elanger

Programmer
Jan 9, 2002
17
US
Using VB6, Crystal 8.5 and the RDC.

I am setting the datasource of the main report and two subreports (linked on the same field) to an ADO recordsource. The data on the main report comes through fine; however, the subreports do not bring up any records, even though there are records there.

If I do not set the datasource, the report works fine, so I assume the problem is linked to the setdatasource method. For test purposes, I have set the datasource to exactly the same fields as the original report, and it still does not work.

Somehow the link is being lost. Is there something I need to set to maintain the link?

Thank you,
Elky Langer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top