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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Subreport Source Object set to previous object on 2nd save

Status
Not open for further replies.

anadev

Programmer
May 29, 2002
1
US
In Access 2000, in a report with more than one subreport, when making a change to one of them and then saving it after having saved it previously, the subreport changes to a white box (as in the older access). In the properties data tab, the source object changed to the source object of another subreport.

I have used subreports extensively before and never had this problem. I tried various troubleshooting routes and under some circumstances this happens with only two subreports. The subreports are linked to the main report and are not nested.

Currently, I worked around the problem by setting the Source Object for each of the subreeports in VBA on the open event. The report then works fine. However, I cannot get it to save with the correct source objects and that makes it difficult to maintain.

I tried compacting and repairing the database to no avail. This is a split database with the tables linked to the .mdb that contains all the queries, forms and reports.

Any ideas will be greatly appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top