Change this part...
Set DataReport1.DataSource = rs
If Not rs.EOF Then
DataReport1.Sections(4).ForcePageBreak = rptPageBreakAfter
DataReport1.Show
rs.MoveNext
End If
to ...
If Not rs.EOF Then
Set DataReport1.DataSource = rs
DataReport1.Sections(4).ForcePageBreak = rptPageBreakAfter
DataReport1.Show
rs.MoveNext
End If
I am not sure why you would want to show 40 seperate report pages though. It will consume large amounts of pc performance. Why not rather open just the record you want to view?
AndreRet
Industrious Poster
4,706 posts since Jan 2008
Reputation Points: 391
Solved Threads: 481
Skill Endorsements: 20
I see. No problem then.
Did my above answer solve the problem though?
AndreRet
Industrious Poster
4,706 posts since Jan 2008
Reputation Points: 391
Solved Threads: 481
Skill Endorsements: 20