What is the difference between "Me.Recordset" and "Me.Report.Recordset" in an Access Report?
Posted on 2009-04-08
I'm developing an Access 2007 "project" (.adp) as a front-end to a SQL Server 2005 Express database.
I have an Access "Report" that is based on a SQL Server "View".
I would like to trap the report (which is opened with a "WHERE" clause) if there are no records to print.
In the Report's "Report_Load" procedure I can check the "Me.Recordset.RecordCount" value, but I notice there is also a "Me.Report.Recordset.Recordcount" that can be checked.
Can someone explain the difference between a Report's "Me.Recordset" and "Me.Report.Recordset" and whether they are the same thing or might ever contain different values, and which of the two might be the more reliable to use?