Pages() Error messsage

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?
 
A

Allen Browne

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.
 
L

Linq Adams via AccessMonster.com

Is this a tabbed page? If so

Me.Page1.Visible = False

is the correct syntax.
 
Top