checking number of pages in report

  • Thread starter Thread starter Alex
  • Start date Start date
A

Alex

How could I check from VB a number of pages in a report to
alert a user before printing if there are many pages?

Thanks
 
You should check the help files before making a post to a
news group.
This is directly from teh visual basic help files for
access.
Dim intTotalPages As Integer
Dim strMsg As String

intTotalPages = Me.Pages
strMsg = "This report contains " & intTotalPages & "
pages."
MsgBox strMsg
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top