Page 2 of 2 FirstFirst 12
Results 16 to 17 of 17
  1. #16
    trevor40's Avatar
    trevor40 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Feb 2014
    Location
    Australia
    Posts
    407
    Use a Tab control...
    I use this to check the tab page and act on that.
    add pages in the select case and do what you need

    Private Sub main_menu_tab_Change()


    With Me(contabs)
    Select Case .Pages(.Value).Caption
    Case "S&ystem"
    Me.Compny_Details.Visible = False
    Me.Setup_Options.Visible = False
    t = InputBox("Enter Password", "PW Check", vbOKCancel)
    If t = 1234 Then
    Me.Compny_Details.Visible = True
    Me.Setup_Options.Visible = True
    Me.Setup_Options.SetFocus
    Else
    Screen.PreviousControl.SetFocus
    End If
    Case Else
    End Select
    End With
    End Sub

  2. #17
    twildt is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2014
    Posts
    56
    Figured it out with a little help from another who is more advanced than me

    My code:

    Option Compare Database

    Private Sub Form_Current()
    'Hide textbox(tbox_total) on main form
    Forms![Main Menu]!tbox_total.Visible = False
    End Sub

    Private Sub NavigationButton7_Click()
    'Hide textbox(tbox_total) on main form
    Forms![Main Menu]!tbox_total.Visible = False
    End Sub

    Private Sub NavigationButton9_Click()
    'Hide textbox(tbox_total) on main form
    Forms![Main Menu]!tbox_total.Visible = False
    End Sub

    Private Sub NavigationButton11_Click()
    'Show textbox(tbox_total) on main form
    Forms![Main Menu]!tbox_total.Visible = True
    End Sub

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 5
    Last Post: 07-11-2013, 02:19 PM
  2. Field visibility based on ComboBox selection
    By cactuspete13 in forum Forms
    Replies: 3
    Last Post: 01-30-2013, 03:37 PM
  3. Replies: 8
    Last Post: 01-25-2012, 02:07 PM
  4. Replies: 3
    Last Post: 09-08-2011, 10:53 AM
  5. Visibility based on Combo selection
    By jlclark4 in forum Forms
    Replies: 1
    Last Post: 12-22-2010, 11:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums