Consulting

Results 1 to 6 of 6

Thread: Solved: Set page as default tab

  1. #1
    VBAX Master
    Joined
    Jun 2006
    Posts
    1,091
    Location

    Solved: Set page as default tab

    I know that whatever page I am on in a multi-page form when I save it will be the page it starts up in. However, I want to give my users the option of setting which page they want it to start on. Can I set the Page to start with code?

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    [vba]

    Multipage1.Value = 0
    [/vba]

  3. #3
    VBAX Master
    Joined
    Jun 2006
    Posts
    1,091
    Location
    I am also trying to hide certain pages with this code:

    [VBA]If GetSetting("Business Reporting Today", "SalesReportOptions", "Customer Visible") = False Then
    MultiPage1.Pages(1).Visible = False
    End If
    If GetSetting("Business Reporting Today", "SalesReportOptions", "Product Visible") = False Then
    MultiPage1.Pages(2).Visible = False
    End If
    If GetSetting("Business Reporting Today", "SalesReportOptions", "SalesPerson Visible") = False Then
    MultiPage1.Pages(3).Visible = False
    End If
    If GetSetting("Business Reporting Today", "SalesReportOptions", "WareHouse Visible") = False Then
    MultiPage1.Pages(4).Visible = False
    End If
    If GetSetting("Business Reporting Today", "SalesReportOptions", "Other Visible") = False Then
    MultiPage1.Pages(5).Visible = False
    End If[/VBA]

    Here is the code where I set the settings:

    [VBA]SaveSetting "Business Reporting Today", "SalesReportOptions", "Customer Visible", SetDefaults.CustomerVisible
    SaveSetting "Business Reporting Today", "SalesReportOptions", "Product Visible", SetDefaults.ProductVisible
    SaveSetting "Business Reporting Today", "SalesReportOptions", "SalesPerson Visible", SetDefaults.SalesPersonVisible
    SaveSetting "Business Reporting Today", "SalesReportOptions", "WareHouse Visible", SetDefaults.WareHouseVisible
    SaveSetting "Business Reporting Today", "SalesReportOptions", "Other Visible", SetDefaults.OtherVisible[/VBA]

    For some Reason I can't get Customer (Page1) to be invisible and Sometimes Product will be visible (Page2) when it is not supposed to be.

  4. #4
    VBAX Master
    Joined
    Jun 2006
    Posts
    1,091
    Location
    I am also trying to hide certain pages with this code:

    [VBA]If GetSetting("Business Reporting Today", "SalesReportOptions", "Customer Visible") = False Then
    MultiPage1.Pages(1).Visible = False
    End If
    If GetSetting("Business Reporting Today", "SalesReportOptions", "Product Visible") = False Then
    MultiPage1.Pages(2).Visible = False
    End If
    If GetSetting("Business Reporting Today", "SalesReportOptions", "SalesPerson Visible") = False Then
    MultiPage1.Pages(3).Visible = False
    End If
    If GetSetting("Business Reporting Today", "SalesReportOptions", "WareHouse Visible") = False Then
    MultiPage1.Pages(4).Visible = False
    End If
    If GetSetting("Business Reporting Today", "SalesReportOptions", "Other Visible") = False Then
    MultiPage1.Pages(5).Visible = False
    End If[/VBA]

    Here is the code where I set the settings:

    [VBA]SaveSetting "Business Reporting Today", "SalesReportOptions", "Customer Visible", SetDefaults.CustomerVisible
    SaveSetting "Business Reporting Today", "SalesReportOptions", "Product Visible", SetDefaults.ProductVisible
    SaveSetting "Business Reporting Today", "SalesReportOptions", "SalesPerson Visible", SetDefaults.SalesPersonVisible
    SaveSetting "Business Reporting Today", "SalesReportOptions", "WareHouse Visible", SetDefaults.WareHouseVisible
    SaveSetting "Business Reporting Today", "SalesReportOptions", "Other Visible", SetDefaults.OtherVisible[/VBA]

    For some Reason I can't get Customer (Page1) to be invisible and Sometimes Product will be visible (Page2) when it is not supposed to be.

  5. #5
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Pages start at 0

  6. #6
    VBAX Master
    Joined
    Jun 2006
    Posts
    1,091
    Location
    That works Perfectly XLD

Posting Permissions

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