Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2002
    Posts
    9

    Question Unanswered: How to assign events to individual tabs?

    Hey. Another simple question from me, but this one's not so urgent.

    Is there ANY WAY to assign events to the individual tabs on a tabbed control? What I would like to do is to requery ONLY the subform displayed on a page when its tab is clicked.

    I was using the "On Click" event for the tab for the longest time (and wondering why it didn't work) but you have to click within the actual page area to call the event, not on the tab itself, and this isn't exactly what I want.

    L8r

    Chris

  2. #2
    Join Date
    Feb 2002
    Posts
    108
    I would like to know the answer to this also, if anyone can help ?

  3. #3
    Join Date
    Nov 2002
    Location
    San Francisco
    Posts
    251

    simple

    the whole tab (no individual pages) has an event OnChange .....

    Private Sub TabCtl0_Change()
    If Me.TabCtl0.Value = 2 Then
    MsgBox "This is my Dream Page!", vbInformation
    End If
    End Sub


    OR

    Private Sub TabCtl0_Change()
    If Me.TabCtl0.Pages(Me.TabCtl0.Value).Name = "Invoices" Then
    MsgBox "This is my Dream Page!", vbInformation
    End If
    End Sub



    Jiri

  4. #4
    Join Date
    Feb 2002
    Posts
    108

    Worked Great,

    Thanks !

Posting Permissions

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