Re: Hide page upon opening



The other thing you need to understand is that the index for the tabbed pages
start at 0 (zero) not at 1!
Assuming you want what shows up as Page1 visible when you open the form, your
code should be:

TabCtl1.Pages(0).Visible = True
TabCtl1.Pages(1).Visible = False
TabCtl1.Pages(2).Visible = False

That's right! Page1 is referred to as TabCtl1.Pages(0) in code!

Ain't Access just a barrel of laughs?

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

Answers/posts based on Access 2000

Message posted via http://www.accessmonster.com

.



Relevant Pages

  • RE: How do I stop the code?
    ... is telling Access to overwrite the RegistrationNumber with "XXXXXXX"! ... There's ALWAYS more than one way to skin a cat! ... Answers/posts based on Access 2000 ...
    (microsoft.public.access.formscoding)
  • Re: Add Date data is entered
    ... And assuming the form opens to a new record, ... There's ALWAYS more than one way to skin a cat! ... Answers/posts based on Access 2000/2003 ...
    (microsoft.public.access.formscoding)
  • Re: Cannot update DAO Recordset
    ... "Both the form and the query can be edited." ... There's ALWAYS more than one way to skin a cat! ... Answers/posts based on Access 2000/2003 ...
    (microsoft.public.access.modulesdaovba)
  • Re: Form Entry Not Saving
    ... I know these questions sound strange, but I've run into people trying to do ... There's ALWAYS more than one way to skin a cat! ... Answers/posts based on Access 2000/2003 ...
    (microsoft.public.access.forms)
  • RE: Mouse scroll wheel with forms
    ... we all know, clients, unless they just opened for business, seldom have the ... There's ALWAYS more than one way to skin a cat! ... Answers/posts based on Access 2000 ...
    (microsoft.public.access.forms)

Loading