Add the remarked lines to your code.
Set adoRS = adoCmd.Execute
Screen.MousePointer = vbHourglass
rep.Database.Tables.Item(1).SetDataSource adoRS, 3
'Add this line. It forces records to be read.
rep.ReadRecords
CRViewer91.ReportSource = rep
CRViewer91.ViewReport
Screen.MousePointer = vbDefault
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.