Re: Pages() Error messsage



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.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Garin1820" <Garin1820@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:562A07F4-6602-4718-BF82-243767B6D9A1@xxxxxxxxxxxxxxxx
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?
.



Relevant Pages

  • Re: Sub Form Problems
    ... The reference should remain the same whether ... Access Database Samples: www.rogersaccesslibrary.com ... I've moved the subform onto a tab control to get more room, ...
    (microsoft.public.access.forms)
  • Re: Referencing an Unbound Control on Active Form - Ceased Functio
    ... I get good returns from the immediate window for the unbound controls. ... but when I reference a checkbox, combobox, or frame there are problems. ... it is possible that the database has a corruption. ...
    (microsoft.public.access.queries)
  • Re: Reference Syntax
    ... "SubformReference.mdb" which illustrates how to reference subforms and ... the Tab control plays no part in the referencing scheme. ... "Ross" wrote in message ... I want to reference a control on the form which is ...
    (microsoft.public.access.formscoding)
  • Re: VBA errors in 2007 (works fine in 2003)
    ... The missing reference is ATPVBAEN.XLA ... to use the Immediate Window in VBE as you suggested, ... Immediate window, and there, type ...
    (microsoft.public.excel.misc)
  • Re: change form property using SetValue
    ... we are going to build this reference a step at a time. ... Press Ctrl+G to open the Immediate window. ... and paste it into your macro below the SetValue action. ... rather than allenbrowne at mvps dot org. ...
    (comp.databases.ms-access)