+ Reply to Thread
Results 1 to 3 of 3

Multipage: [Me.Controls("Page" & i).Name] does not work

  1. #1
    Registered User
    Join Date
    09-23-2004
    Posts
    65

    Multipage: [Me.Controls("Page" & i).Name] does not work

    A usefull code is working with .Controls
    eg I have several txtboxes named txtHallo1 txtHallo2 ...

    for iCH = 1 to ...
    Me.Controls("txtHallo" & iCH).text
    next iCH

    My problem;
    How can you do this for multipage pages?

    Me.Multisheet.Page1
    Me.Multisheet.Page2
    Me.Multisheet.Page3
    Me.Multisheet.Page4
    Me.Multisheet.Page5

    Is there a special shortcut? because me.controls("Page" & iCH) does not work.

    Zurn

  2. #2
    papou
    Guest

    Re: Multipage: [Me.Controls("Page" & i).Name] does not work

    Hello
    For i = 0 To Me.MultiPage1.Pages.Count - 1
    MsgBox Me.MultiPage1.Pages(i).Caption
    Next i

    HTH
    Cordially
    Pascal



  3. #3
    Registered User
    Join Date
    09-23-2004
    Posts
    65
    Off course! I was blinded by the Controls that I did not think about this.

    Thanks Papou!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1