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
149 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
Comment Utility
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now