Solved

I am working with a Muti-page object, I want various things to change when one page has focus.

Posted on 2003-11-19
1
152 Views
Last Modified: 2010-05-03
I want various things to change when one page has focus, however I cannot get the form to recognize which page has focus and which does not.  I have tried the following however it did not work.  If there is a different type of object that I should use please let me know I am all ears!  Thanks for any help!!

------  Code  ------
Private Sub MultiPage1_Change()
    If MultiPage1.Value = Page1 Then
        CommandButton20.Visible = False
        CommandButton21.Visible = False
        CommandButton22.Visible = False
        CommandButton23.Visible = False
        CommandButton24.Visible = False
        CommandButton25.Visible = False
        cmdPOP.Top = 24
        cmdPOP.Left = 636
        CBNotice.Top = 42
        CBNotice.Left = 666
        Label5.Visible = True
    ElseIf MultiPage1.Value = Page2 Then
        CommandButton20.Visible = True
        CommandButton21.Visible = True
        CommandButton22.Visible = True
        CommandButton23.Visible = True
        CommandButton24.Visible = True
        CommandButton25.Visible = True
        cmdPOP.Top = 24
        cmdPOP.Left = 636
        CBNotice.Top = 42
        CBNotice.Left = 666
        Label5.Visible = False
    End If
End Sub
-------  Break  -------
0
Comment
Question by:gideonn
1 Comment
 
LVL 85

Accepted Solution

by:
Mike Tomlinson earned 500 total points
ID: 9781180
Try:

If MultiPage1.Value = 0 Then

ElseIf MultiPage1.Value = 1 Then

ElseIf ....

End if

or:

Select Case MultiPage1.Value
     Case 0

     Case 1

     Case ...

End Select


0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to create a duplicate finder Application 9 127
Using "ScreenUpdating" 6 84
How to read File Date Created using VB6 8 61
MS SQL Update query with connected table data 3 61
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question