Pages() Error messsage

  • Thread starter Thread starter Garin1820
  • Start date Start date
G

Garin1820

Version Access 2003 and Access 2000
Pages(1).visible = false
Of corse the page exist the massage error tels that there is no enogth
parameters or that the property it is no aplicable
Why this is not ok?
 
Pages of what?

A report?
A form?
A tab control?

Include a reference to the object whose collection you are refering to.
In the Immediate window, try something like this:

Debug.Print Forms!Form1!Tab1.Pages.Count

The first page is zero, so Pages(1) would be the 2nd one.
 
Is this a tabbed page? If so

Me.Page1.Visible = False

is the correct syntax.

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000/2003

Message posted via AccessMonster.com
 
Garin1820 said:
Version Access 2003 and Access 2000
Pages(1).visible = false
Of corse the page exist the massage error tels that there is no enogth
parameters or that the property it is no aplicable
Why this is not ok?

"Pages" (in a report) is not what you think it is. It is not a collection
of pages, but rather just a property that returns the total number of pages
that the report has.
 
Back
Top