title: Get total number of pages of report in VBA ms access
body: <p>I have a button on a form, on its click my report is generated. In the <code>Load</code> event of that report I am trying to get Total number of pages. I need them in my DB, but whenever I try <code>Me.Pages</code>, I only get 1 in Load Event.</p>
  
  <p>I tried this doing with <code>Current</code> and <code>Activate</code> event of report as well, but I always get total pages 1.<br>
  Any solution?</p>